mirror of
https://github.com/imputnet/cobalt.git
synced 2025-06-28 01:18:27 +00:00
web/lib/download: delay revoking object URL for 10s
just to be safe
This commit is contained in:
parent
892c055d6a
commit
9c16efd3b1
@ -42,7 +42,7 @@ export const openFile = (file: File) => {
|
|||||||
a.href = url;
|
a.href = url;
|
||||||
a.download = file.name;
|
a.download = file.name;
|
||||||
a.click();
|
a.click();
|
||||||
URL.revokeObjectURL(url);
|
setTimeout(() => URL.revokeObjectURL(url), 10_000);
|
||||||
}
|
}
|
||||||
|
|
||||||
export const shareFile = async (file: File) => {
|
export const shareFile = async (file: File) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user