MCPcopy Create free account
hub / github.com/openscopeproject/InteractiveHtmlBom / saveFile

Function saveFile

InteractiveHtmlBom/web/util.js:471–477  ·  view source on GitHub ↗
(filename, blob)

Source from the content-addressed store, hash-verified

469}
470
471function saveFile(filename, blob) {
472 var link = document.createElement("a");
473 var objurl = URL.createObjectURL(blob);
474 link.download = filename;
475 link.href = objurl;
476 link.click();
477}
478
479function dataURLtoBlob(dataurl) {
480 var arr = dataurl.split(','),

Callers 3

saveBomTableFunction · 0.85
saveImageFunction · 0.85
saveSettingsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected