Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/sanddance-app/src/download.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export function downloadData(data: any, fileName: string) {
const blob = dataURIToBlob(data);
a.href = URL.createObjectURL(blob);
// we must revoke the object URL,
// since we can't know when the download occured, we have to attach it on the click handler..
// since we can't know when the download occurred, we have to attach it on the click handler..
a.onclick = () => {
// ..and to wait a frame
requestAnimationFrame(() => URL.revokeObjectURL(a.href));
Expand Down