Skip to content

Commit 3a9a329

Browse files
committed
try catch todo
1 parent ab76dbf commit 3a9a329

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib_src/misc/colors.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ export function getColors(selectors: { [P: string]: string }) {
1919
document.body.appendChild(div)
2020
// wait till rendered?
2121
for (const style in selectors) {
22+
// TODO do we need try catch
2223
try {
2324
color[style] = rgb2hex(window.getComputedStyle(styled[style]).color)
2425
} catch (e) {

0 commit comments

Comments
 (0)