web/download: remove redundant async

This commit is contained in:
wukko
2024-09-09 19:36:08 +06:00
parent 2dbcdb18f9
commit bd93da94dc

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);