mirror of
https://github.com/pi-hole/web.git
synced 2025-12-24 12:48:29 +00:00
Use client address if name is empty
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
@@ -386,7 +386,16 @@ function updateClientsOverTime() {
|
||||
for (key in data.clients)
|
||||
{
|
||||
if (!{}.hasOwnProperty.call(data.clients, key)) continue;
|
||||
labels.push(data.clients[key].name);
|
||||
var clientname;
|
||||
if(data.clients[key].name.length > 0)
|
||||
{
|
||||
clientname = data.clients[key].name;
|
||||
}
|
||||
else
|
||||
{
|
||||
clientname = data.clients[key].ip;
|
||||
}
|
||||
labels.push(clientname);
|
||||
}
|
||||
// Get colors from AdminLTE
|
||||
var colors = [];
|
||||
|
||||
Reference in New Issue
Block a user