fix file name
This commit is contained in:
parent
691581b3bb
commit
43511cafe1
2
main.js
2
main.js
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user