diff --git a/scripts/pi-hole/js/index.js b/scripts/pi-hole/js/index.js index 196dced6..42ab4778 100644 --- a/scripts/pi-hole/js/index.js +++ b/scripts/pi-hole/js/index.js @@ -463,9 +463,10 @@ function updateClientsOverTime() { { clientsChart.data.datasets.push({ data: [], + // If we ran out of colors, make a random one backgroundColor: i < colors.length ? colors[i] - : '#' + parseInt("" + Math.random() * 0xffffff, 10).toString(16).padStart(6, "0"), + : "#" + parseInt("" + Math.random() * 0xffffff, 10).toString(16).padStart(6, "0"), pointRadius: 0, pointHitRadius: 5, pointHoverRadius: 5,