(filename, text)
| 2384 | } |
| 2385 | |
| 2386 | function 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 | |
| 2398 | function reloadIconManifestScript() { |
| 2399 | // `icons/manifest.js` is loaded once at page load; "Refresh" should be able to pick up changes. |
no outgoing calls
no test coverage detected