Fix download link

This commit is contained in:
Booteille 2024-11-26 23:27:52 +01:00
parent b50851caa8
commit 50f62fd8b3
No known key found for this signature in database
GPG Key ID: 0AB6C6CA01272646
1 changed files with 1 additions and 3 deletions

View File

@ -170,10 +170,8 @@ const populateFilesTable = () => {
itemDOM.setAttribute("data-serverKey", file.short);
itemDOM.setAttribute("data-actionKey", file.token);
const downloadLink = `${actionURL}d/${file.short}/${file.token}`;
itemDOM.querySelector(".column.name").innerText = file.name;
itemDOM.querySelector(".column.download a").href = downloadLink;
itemDOM.querySelector(".column.download a").href = file.url;
itemDOM
.querySelector(".column.delete-at-first-view .icon")
.classList.add(file.del_at_first_view ? "check" : "close");