mirror of
https://github.com/caddyserver/website.git
synced 2025-04-21 12:36:16 -04:00
fix: download link compute
This commit is contained in:
parent
ee662393d0
commit
c34ed730c4
1 changed files with 1 additions and 1 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue