Skip to content

Commit 6964e8c

Browse files
authored
Fixing the reversed logic (#2597)
2 parents 81cbabc + 30afba8 commit 6964e8c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/pi-hole/js/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -532,12 +532,12 @@ function updateTopClientsChart() {
532532

533533
client = utils.escapeHtml(client);
534534
if (client.indexOf("|") === -1) {
535+
clientname = client;
536+
clientip = client;
537+
} else {
535538
idx = client.indexOf("|");
536539
clientname = client.substr(0, idx);
537540
clientip = client.substr(idx + 1, client.length - idx);
538-
} else {
539-
clientname = client;
540-
clientip = client;
541541
}
542542

543543
url =

0 commit comments

Comments
 (0)