Skip to content

Commit 3e3567a

Browse files
authored
Fix request box copying
1 parent 9f84815 commit 3e3567a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

assets/js/app.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@ function copyRequestBoxUrl() {
4949
let baseUrl = document.getElementById("baseUrl").innerText;
5050
let input = document.getElementById("url");
5151

52-
if(input.innerText === "") {
52+
if(input.value === "") {
5353
navigator.clipboard.writeText(baseUrl + input.placeholder)
5454
} else {
55-
navigator.clipboard.writeText(baseUrl + input.innerText)
55+
navigator.clipboard.writeText(baseUrl + input.value)
5656
}
5757
}
5858

0 commit comments

Comments
 (0)