()
| 97 | function makeSnapshot(mode: 'light' | 'dark'): ThemeSnapshot { |
| 98 | return { |
| 99 | mode, |
| 100 | cssVar: (name: string) => |
| 101 | typeof getComputedStyle !== 'undefined' |
| 102 | ? getComputedStyle(document.documentElement).getPropertyValue(name).trim() |
| 103 | : '' |
| 104 | } |
no test coverage detected