MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / downloadBlob

Function downloadBlob

packages/client/src/app/AppShell.tsx:315–324  ·  view source on GitHub ↗
(blob: Blob, fileName: string)

Source from the content-addressed store, hash-verified

313}
314
315function downloadBlob(blob: Blob, fileName: string) {
316 const url = URL.createObjectURL(blob);
317 const link = document.createElement("a");
318 link.href = url;
319 link.download = fileName;
320 document.body.appendChild(link);
321 link.click();
322 link.remove();
323 window.setTimeout(() => URL.revokeObjectURL(url), 30_000);
324}
325
326function captureFileBaseName(
327 simulator: SimulatorMetadata,

Callers 2

toggleSimulatorRecordingFunction · 0.85

Calls 2

setTimeoutMethod · 0.80
removeMethod · 0.65

Tested by

no test coverage detected