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 2881274 commit d46cfd3Copy full SHA for d46cfd3
src/download.ts
@@ -1,7 +1,8 @@
1
import { uuid } from "./uuid"
2
-export function download(url: string, name = uuid()) {
3
- const a = document.createElement('a')
+export function download(url: string) {
+ let a: any = 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