MCPcopy Create free account
hub / github.com/CodeGraphContext/CodeGraphContext / downloadBlob

Function downloadBlob

website/src/lib/cgc-exporter.ts:106–115  ·  view source on GitHub ↗
(blob: Blob, filename: string)

Source from the content-addressed store, hash-verified

104}
105
106export function downloadBlob(blob: Blob, filename: string) {
107 const url = URL.createObjectURL(blob);
108 const a = document.createElement("a");
109 a.href = url;
110 a.download = filename;
111 document.body.appendChild(a);
112 a.click();
113 document.body.removeChild(a);
114 URL.revokeObjectURL(url);
115}
116
117export async function publishCgcBundle(
118 blob: Blob,

Callers 4

handleExportFunction · 0.90
handleExportFunction · 0.90
handleSvgExportFunction · 0.90
handleHtmlExportFunction · 0.90

Calls 1

clickMethod · 0.80

Tested by

no test coverage detected