Skip to content

best way to save what you love

web/lib/download: delay revoking object URL for 10s

jj9c16efd3b10c
diff --git a/web/src/lib/download.ts b/web/src/lib/download.ts
index 393b8e82..bce6cfa2 100644
--- a/web/src/lib/download.ts
+++ b/web/src/lib/download.ts
@@ -42,7 +42,7 @@ export const openFile = (file: File) => {
a.href = url;
a.download = file.name;
a.click();
- URL.revokeObjectURL(url);
+ setTimeout(() => URL.revokeObjectURL(url), 10_000);
}
export const shareFile = async (file: File) => {