web/download: remove redundant async
This commit is contained in:
parent
2dbcdb18f9
commit
bd93da94dc
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue