diff --git a/scripts/pi-hole/js/index.js b/scripts/pi-hole/js/index.js index 969e6cdc..da679d6c 100644 --- a/scripts/pi-hole/js/index.js +++ b/scripts/pi-hole/js/index.js @@ -323,7 +323,7 @@ function updateClientsOverTime() { // If we ran out of colors, make a random one backgroundColor: i < colors.length ? colors[i] : - "#" + parseInt(String(Math.random() * 0xFFFFFF), 10).toString(16).padStart(6, "0"), + "#" + (0x1000000 + Math.random() * 0xffffff).toString(16).substr(1, 6), pointRadius: 0, pointHitRadius: 5, pointHoverRadius: 5,