MCPcopy Index your code
hub / github.com/github/awesome-copilot / triggerBlobDownload

Function triggerBlobDownload

website/src/scripts/utils.ts:83–92  ·  view source on GitHub ↗
(blob: Blob, filename: string)

Source from the content-addressed store, hash-verified

81}
82
83function triggerBlobDownload(blob: Blob, filename: string): void {
84 const url = URL.createObjectURL(blob);
85 const link = document.createElement("a");
86 link.href = url;
87 link.download = filename;
88 document.body.appendChild(link);
89 link.click();
90 document.body.removeChild(link);
91 URL.revokeObjectURL(url);
92}
93
94export async function downloadZipBundle(
95 bundleName: string,

Callers 2

downloadZipBundleFunction · 0.85
downloadFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected