Skip to content

Commit

Permalink
Replace try with use
Browse files Browse the repository at this point in the history
  • Loading branch information
agners committed Oct 7, 2024
1 parent d549059 commit 4e52609
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions rootfs/usr/share/www/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ <h1>Networking issue detected</h1>
</div>
</div>
<div class="actions">
<button id="try_cloudflare_dns" class="button">Use Cloudflare DNS</button>
<button id="try_google_dns" class="button">Use Google DNS</button>
<button id="use_cloudflare_dns" class="button">Use Cloudflare DNS</button>
<button id="use_google_dns" class="button">Use Google DNS</button>
</div>
</div>
<pre id="log"></pre>
Expand Down
4 changes: 2 additions & 2 deletions rootfs/usr/share/www/static/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,11 +175,11 @@ function toggleLogs(event) {
}
}

document.getElementById("try_cloudflare_dns").addEventListener("click", function() {
document.getElementById("use_cloudflare_dns").addEventListener("click", function() {
setDns(["1.1.1.1", "1.0.0.1"], ["2606:4700:4700::1111", "2606:4700:4700::1001"]);
});

document.getElementById("try_google_dns").addEventListener("click", function() {
document.getElementById("use_google_dns").addEventListener("click", function() {
setDns(["8.8.8.8", "8.8.4.4"], ["2001:4860:4860::8888", "2001:4860:4860::8844"]);
});

Expand Down

0 comments on commit 4e52609

Please sign in to comment.