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

just to be safe
This commit is contained in:
jj 2025-05-23 17:50:24 +00:00
parent 892c055d6a
commit 9c16efd3b1
No known key found for this signature in database

View File

@ -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) => {