mirror of
https://github.com/pi-hole/web.git
synced 2024-12-06 19:36:21 +01:00
Fixing the reversed logic
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
This commit is contained in:
@@ -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 =
|
||||
|
||||
Reference in New Issue
Block a user