diff --git a/main.js b/main.js index 4588310..0438742 100644 --- a/main.js +++ b/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"