Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Bram Kragten <[email protected]>
  • Loading branch information
agners and bramkragten authored Oct 7, 2024
1 parent 97194ee commit 94b7d29
Showing 1 changed file with 2 additions and 2 deletions.
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 @@ -124,7 +124,7 @@ function fetchNetworkInfo() {

if (document.body.classList.contains("network-issue")) {
const primaryInterface = data.data.interfaces.find(intf => intf.primary);
var dnsElement = document.getElementById("current_dns");
const dnsElement = document.getElementById("current_dns");
if (!primaryInterface) {
dnsElement.innerText = "(no primary interface)";
} else {
Expand All @@ -136,7 +136,7 @@ function fetchNetworkInfo() {
}, scheduleFetchNetworkInfo());
}

var scheduleNetworkTimeout;
const scheduleNetworkTimeout;

function scheduleFetchNetworkInfo() {
clearTimeout(scheduleNetworkTimeout);
Expand Down

0 comments on commit 94b7d29

Please sign in to comment.