MCPcopy
hub / github.com/ZHO-ZHO-ZHO/Nano-Bananary / downloadImage

Function downloadImage

utils/fileUtils.ts:136–143  ·  view source on GitHub ↗
(url: string, filename: string)

Source from the content-addressed store, hash-verified

134 * @param filename The desired name for the downloaded file.
135 */
136export const downloadImage = (url: string, filename: string) => {
137 const link = document.createElement('a');
138 link.href = url;
139 link.download = filename;
140 document.body.appendChild(link);
141 link.click();
142 document.body.removeChild(link);
143};

Callers 5

handleDownloadFunction · 0.90
handleDownloadBothFunction · 0.90
ResultDisplayFunction · 0.90
handleDownloadVideoFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected