Skip to content

Commit

Permalink
Replace padStart with a solution that works in older browsers
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Warner <[email protected]>
  • Loading branch information
PromoFaux authored and XhmikosR committed Dec 29, 2019
1 parent 691cc3d commit 52f6573
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions scripts/pi-hole/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -321,9 +321,7 @@ function updateClientsOverTime() {
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,
Expand Down

0 comments on commit 52f6573

Please sign in to comment.