web/download: remove redundant async

This commit is contained in:
wukko 2024-09-09 19:36:08 +06:00
parent 2dbcdb18f9
commit bd93da94dc
No known key found for this signature in database
GPG key ID: 3E30B3F26C7B4AA2

View file

@ -20,7 +20,7 @@ const openSavingDialog = ({ url, file, body }: { url?: string, file?: File, body
createDialog(dialogData) createDialog(dialogData)
} }
export const openFile = async (file: File) => { export const openFile = (file: File) => {
const a = document.createElement("a"); const a = document.createElement("a");
const url = URL.createObjectURL(file); const url = URL.createObjectURL(file);