MCPcopy Create free account
hub / github.com/Vishal-raj-1/Awesome-JavaScript-Projects / down

Function down

assets/js/Image_editor.js:36–41  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

34})
35
36function down() {
37 let href = targetimg.getAttribute('src');
38 let imagepath = href;
39 let filename = getFileName(imagepath);
40 saveAs(imagepath, filename);
41}
42
43function getFileName(str) {
44 return str.substring(str.lastIndexOf('/') + 1);

Callers

nothing calls this directly

Calls 1

getFileNameFunction · 0.85

Tested by

no test coverage detected