mirror of
https://github.com/Dangoware/confetti-box.git
synced 2025-05-03 22:22:57 -05:00
URI encode links for copying
This commit is contained in:
parent
2e7c194388
commit
cbee7641dd
1 changed files with 3 additions and 1 deletions
|
@ -62,7 +62,9 @@ function makeFinished(progressBar, progressText, linkRow, linkAddress, hash) {
|
|||
let button = linkRow.appendChild(document.createElement("button"));
|
||||
button.textContent = "📝";
|
||||
button.addEventListener('click', function(e) {
|
||||
navigator.clipboard.writeText("https://" + window.location.host + "/" + linkAddress)
|
||||
navigator.clipboard.writeText(
|
||||
encodeURI("https://" + window.location.host + "/" + linkAddress)
|
||||
)
|
||||
})
|
||||
|
||||
progressBar.style.display = "none";
|
||||
|
|
Loading…
Reference in a new issue