Skip to content

Commit

Permalink
Fixing the reversed logic
Browse files Browse the repository at this point in the history
Signed-off-by: RD WebDesign <[email protected]>
  • Loading branch information
rdwebdesign committed May 28, 2023
1 parent 81cbabc commit 30afba8
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 30afba8

Please sign in to comment.