MCPcopy Create free account
hub / github.com/JKPotato-Computer/SignMaker / downloadFile

Function downloadFile

js/main.js:1079–1085  ·  view source on GitHub ↗
(dataURL,ending)

Source from the content-addressed store, hash-verified

1077 */
1078
1079 const downloadFile = function(dataURL,ending) {
1080 let a = document.createElement(`a`);
1081 a.setAttribute("href", dataURL);
1082 a.setAttribute("download", "downloadedSign" + ending);
1083 a.click();
1084 a.remove();
1085 }
1086
1087 function getFile() {
1088 var screenshotTarget;

Callers 2

saveToPngFunction · 0.85
onTempImageLoadFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected