Skip to content

Commit

Permalink
Trim IPs
Browse files Browse the repository at this point in the history
  • Loading branch information
randomairborne committed Apr 28, 2024
1 parent 6cdc231 commit 2ef08af
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions assets/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ if (ip4txt.hidden) {
fetch(v4_endpoint)
.then((req) => req.text())
.then((resp) => {
ip4.innerText = resp;
ip4.innerText = resp.trim();
ip4txt.hidden = false;
document.getElementById("title").innerText = `Your IP is ${resp}`;
})
Expand All @@ -22,7 +22,7 @@ if (ip6txt.hidden) {
fetch(v6_endpoint)
.then((req) => req.text())
.then((resp) => {
ip6.innerText = resp;
ip6.innerText = resp.trim();
ip6txt.hidden = false;
})
.catch((failed) => {
Expand Down

0 comments on commit 2ef08af

Please sign in to comment.