fix(machine): fix TypeScript cast in useTheme isElectron check
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
09611c0958
commit
f6a1c2f9f6
1 changed files with 1 additions and 1 deletions
|
|
@ -23,7 +23,7 @@ const MODE_KEY = 'lamassu-color-mode'
|
||||||
const current = ref<ThemeId>(loadTheme())
|
const current = ref<ThemeId>(loadTheme())
|
||||||
const colorMode = ref<ColorMode>(loadColorMode())
|
const colorMode = ref<ColorMode>(loadColorMode())
|
||||||
|
|
||||||
const isElectron = !!(window as Record<string, unknown>).electronAPI
|
const isElectron = !!(window as unknown as Record<string, unknown>).electronAPI
|
||||||
|
|
||||||
function loadTheme(): ThemeId {
|
function loadTheme(): ThemeId {
|
||||||
try {
|
try {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue