mirror of
https://github.com/imputnet/cobalt.git
synced 2024-12-29 11:06:10 +00:00
web/download: remove redundant async
This commit is contained in:
parent
2dbcdb18f9
commit
bd93da94dc
|
@ -20,7 +20,7 @@ const openSavingDialog = ({ url, file, body }: { url?: string, file?: File, body
|
|||
createDialog(dialogData)
|
||||
}
|
||||
|
||||
export const openFile = async (file: File) => {
|
||||
export const openFile = (file: File) => {
|
||||
const a = document.createElement("a");
|
||||
const url = URL.createObjectURL(file);
|
||||
|
||||
|
|
Loading…
Reference in a new issue