()
| 601 | } |
| 602 | |
| 603 | export function getRandomColor() { |
| 604 | return '#' + ((1 << 24) * Math.random() | 0).toString(16).padStart(6, '0'); |
| 605 | } |
| 606 | |
| 607 | // Using this function instead of 'btoa' directly. |
| 608 | // https://developer.mozilla.org/en-US/docs/Glossary/Base64#the_unicode_problem |