From 30afba838b1abad94cb32344d797a44f578f33de Mon Sep 17 00:00:00 2001 From: RD WebDesign Date: Sun, 28 May 2023 15:31:50 -0300 Subject: [PATCH] Fixing the reversed logic Signed-off-by: RD WebDesign --- scripts/pi-hole/js/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/pi-hole/js/index.js b/scripts/pi-hole/js/index.js index e70d856ba..329bf04d2 100644 --- a/scripts/pi-hole/js/index.js +++ b/scripts/pi-hole/js/index.js @@ -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 =