Skip to content

Commit 5eb3594

Browse files
author
Simon he
committed
chore: update
1 parent d46cfd3 commit 5eb3594

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/download.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import { uuid } from "./uuid"
22
export function download(url: string) {
3-
let a: any = document.createElement('a')
3+
const a: HTMLAnchorElement = document.createElement('a')
44
a.href = url
55
a.download = url.substring(url.lastIndexOf('/') + 1, url.length)
66
a.click()
7-
a = null
87
}

0 commit comments

Comments
 (0)