Database refactoring.
This commit is contained in:
1 parent
bb184dc2cc
commit
467c7f289f
37 files changed
+566
-591
No files matched your search
+1
-1
@@ -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)).substr(-2);
|
||||
color += ('00' + value.toString(16)).substring(-2);
|
||||
}
|
||||
return color;
|
||||
}
|
||||
Reference in new issue
Block a user