mirror of
https://github.com/pi-hole/web.git
synced 2024-12-06 19:36:21 +01:00
Replace padStart with a solution that works in older browsers
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user