cockpit/js/instance.js in cpee-1.3.222 vs cockpit/js/instance.js in cpee-1.3.223

- old
+ new

@@ -1,6 +1,7 @@ var ws; +var myid = ([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g, c => (c ^ crypto.getRandomValues(new Uint8Array(1))[0] & 15 >> c / 4).toString(16)); var running = false; var subscription; var subscription_state = 'less'; var save = {}; save['state']= undefined; @@ -598,20 +599,20 @@ var params = { mimetype: 'image/svg+xml' }; var gc = $('#graphcanvas').clone(); $.ajax({ type: "GET", - url: "lib/wfadaptor.css", + url: "css/wfadaptor.css", success: function(res){ gc.prepend($X('<style xmlns="http://www.w3.org/2000/svg" type="text/css"><![CDATA[' + res + ']]></style>')); $.ajax({ type: "GET", url: base + "/properties/values/attributes/info/", success: function(res){ var name = $(res.documentElement).text(); $('#savesvg').attr('download',name + '.svg'); - $('#savesvg').attr('href','data:application/xml;charset=utf-8;base64,' + window.btoa(gc.serializeXML())); + $('#savesvg').attr('href','data:application/xml;charset=utf-8;base64,' + $B64(gc.serializeXML())); document.getElementById('savesvg').click(); }, error: report_failure }); }