We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d46cfd3 commit 5eb3594Copy full SHA for 5eb3594
src/download.ts
@@ -1,8 +1,7 @@
1
import { uuid } from "./uuid"
2
export function download(url: string) {
3
- let a: any = document.createElement('a')
+ const a: HTMLAnchorElement = document.createElement('a')
4
a.href = url
5
a.download = url.substring(url.lastIndexOf('/') + 1, url.length)
6
a.click()
7
- a = null
8
}
0 commit comments