fix(redesign): static top download

This commit is contained in:
darkweak 2023-10-15 16:10:47 +02:00 committed by Francis Lavoie
parent 3dc98f5584
commit 85ec18c9a6
No known key found for this signature in database
GPG key ID: C5204D4F28147FC8
3 changed files with 39 additions and 25 deletions

View file

@ -138,4 +138,8 @@ function togglePackage({ target: { dataset: { module } } }) {
}
document.getElementById('command-builder').innerText = `xcaddy build${packages.map(p => ` --with ${p}`).join('')}`
}
function copyCommand() {
navigator.clipboard.writeText(`xcaddy build${packages.map(s => ` --with ${s}`).join('')}`)
}