Merge pull request #1551 from sergiomensing/fix-color-dots-in-realtime-logs

Fix unique dot colors in the realtime logs
This commit is contained in:
Mike Cao 2022-10-07 16:34:51 -07:00 committed by GitHub
commit 73e7f647c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -74,7 +74,7 @@ export function stringToColor(str) {
let color = '#';
for (let i = 0; i < 3; i++) {
let value = (hash >> (i * 8)) & 0xff;
color += ('00' + value.toString(16)).substring(-2);
color += ('00' + value.toString(16)).slice(-2);
}
return color;
}