target blank

This commit is contained in:
Zhora Shalyapin 2024-11-29 12:45:34 +00:00
parent fb9168f700
commit 691581b3bb

View File

@ -82,6 +82,7 @@
let downloadLink = document.createElement("a")
downloadLink.setAttribute("download", name)
downloadLink.textContent = "Скачать"
downloadLink.setAttribute("target", "_blank")
if (href)
downloadLink.href = href