fix: download link compute

This commit is contained in:
darkweak 2023-10-17 21:40:08 +02:00 committed by Francis Lavoie
parent ee662393d0
commit c34ed730c4
No known key found for this signature in database
GPG key ID: C5204D4F28147FC8

View file

@ -155,7 +155,7 @@ function setDownloadLink() {
document.getElementById('command-builder').innerText = getCommand();
document
.getElementById('download-link')
.setAttribute('href', `${downloadURL}?${new URLSearchParams(Object.entries(versions).map(p => ['p', `${p}${!!versions[p] ? `@${versions[p]}` : ''}`])).toString()}`);
.setAttribute('href', `${downloadURL}?${new URLSearchParams(Object.entries(versions).map(([p, v]) => ['p', `${p}${!!v ? `@${v}` : ''}`])).toString()}`);
}
function getCommand() {