From d7b328e103dff3afd56643a1997c70ccd9da3228 Mon Sep 17 00:00:00 2001 From: Mark Drobnak Date: Thu, 16 Aug 2018 17:47:05 -0400 Subject: [PATCH] Use doublequote strings and add comment Signed-off-by: Mark Drobnak --- scripts/pi-hole/js/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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,