From 9c16efd3b10c9489fcfcbc610c6f71038e490388 Mon Sep 17 00:00:00 2001 From: jj Date: Fri, 23 May 2025 17:50:24 +0000 Subject: [PATCH] web/lib/download: delay revoking object URL for 10s just to be safe --- web/src/lib/download.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) => {