We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e7af76e commit 0da237fCopy full SHA for 0da237f
lib_src/misc/colors.ts
@@ -19,6 +19,7 @@ export function getColors(selectors: { [P: string]: string }) {
19
document.body.appendChild(div)
20
// wait till rendered?
21
for (const style in selectors) {
22
+ // TODO do we need try catch
23
try {
24
color[style] = rgb2hex(window.getComputedStyle(styled[style]).color)
25
} catch (e) {
0 commit comments