fix file name

This commit is contained in:
Zhora Shalyapin 2024-11-29 12:45:43 +00:00
parent 691581b3bb
commit 43511cafe1

View File

@ -121,7 +121,7 @@
let fileButtonsContainer = document.createElement("div")
fileButtonsContainer.classList.add("file-buttons-container")
fileButtonsContainer.appendChild(makeDownloadLink("test.png", file))
fileButtonsContainer.appendChild(makeDownloadLink(/[^/]*$/.exec(new URL(file).pathname)[0], file))
let deleteButton = document.createElement("button")
deleteButton.type = "button"