mirror of
https://github.com/pi-hole/web.git
synced 2025-12-24 20:55:28 +00:00
We should split the string at ": " instead of at ":" to be fully compatible with IPv6 addresses
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
@@ -1070,7 +1070,7 @@ var customTooltips = function(tooltip) {
|
||||
style += '; border-color:' + colors.borderColor;
|
||||
style += '; border-width: 2px';
|
||||
var span = '<span class="chartjs-tooltip-key" style="' + style + '"></span>';
|
||||
var num = body[0].split(':');
|
||||
var num = body[0].split(': ');
|
||||
if(num[1] > 0)
|
||||
{
|
||||
innerHtml += '<tr><td>' + span + body + '</td></tr>';
|
||||
|
||||
Reference in New Issue
Block a user