MCPcopy Create free account
hub / github.com/cifertech/DisplayKit / downloadText

Function downloadText

app.js:2386–2396  ·  view source on GitHub ↗
(filename, text)

Source from the content-addressed store, hash-verified

2384}
2385
2386function downloadText(filename, text) {
2387 const blob = new Blob([text], { type: "text/plain;charset=utf-8" });
2388 const url = URL.createObjectURL(blob);
2389 const a = document.createElement("a");
2390 a.href = url;
2391 a.download = filename;
2392 document.body.appendChild(a);
2393 a.click();
2394 document.body.removeChild(a);
2395 URL.revokeObjectURL(url);
2396}
2397
2398function reloadIconManifestScript() {
2399 // `icons/manifest.js` is loaded once at page load; "Refresh" should be able to pick up changes.

Callers 3

exportAllIconsViaServerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected