Skip to content

Commit

Permalink
Fixing the reversed logic (#2597)
Browse files Browse the repository at this point in the history
  • Loading branch information
PromoFaux authored May 28, 2023
2 parents 81cbabc + 30afba8 commit 6964e8c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/pi-hole/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -532,12 +532,12 @@ function updateTopClientsChart() {

client = utils.escapeHtml(client);
if (client.indexOf("|") === -1) {
clientname = client;
clientip = client;
} else {
idx = client.indexOf("|");
clientname = client.substr(0, idx);
clientip = client.substr(idx + 1, client.length - idx);
} else {
clientname = client;
clientip = client;
}

url =
Expand Down

0 comments on commit 6964e8c

Please sign in to comment.