Skip to content

Commit

Permalink
Fix request box copying
Browse files Browse the repository at this point in the history
  • Loading branch information
dhrdlicka authored Feb 23, 2024
1 parent 9f84815 commit 3e3567a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions assets/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ function copyRequestBoxUrl() {
let baseUrl = document.getElementById("baseUrl").innerText;
let input = document.getElementById("url");

if(input.innerText === "") {
if(input.value === "") {
navigator.clipboard.writeText(baseUrl + input.placeholder)
} else {
navigator.clipboard.writeText(baseUrl + input.innerText)
navigator.clipboard.writeText(baseUrl + input.value)
}
}

Expand Down

0 comments on commit 3e3567a

Please sign in to comment.