target blank
This commit is contained in:
parent
fb9168f700
commit
691581b3bb
1
main.js
1
main.js
@ -82,6 +82,7 @@
|
|||||||
let downloadLink = document.createElement("a")
|
let downloadLink = document.createElement("a")
|
||||||
downloadLink.setAttribute("download", name)
|
downloadLink.setAttribute("download", name)
|
||||||
downloadLink.textContent = "Скачать"
|
downloadLink.textContent = "Скачать"
|
||||||
|
downloadLink.setAttribute("target", "_blank")
|
||||||
if (href)
|
if (href)
|
||||||
downloadLink.href = href
|
downloadLink.href = href
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user