From f6a1c2f9f69986a56ffbb7547379bfd3950904d0 Mon Sep 17 00:00:00 2001 From: Patrick Mulligan Date: Fri, 27 Feb 2026 20:22:58 -0500 Subject: [PATCH] fix(machine): fix TypeScript cast in useTheme isElectron check Co-Authored-By: Claude Opus 4.6 --- apps/machine/src/composables/useTheme.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/machine/src/composables/useTheme.ts b/apps/machine/src/composables/useTheme.ts index edcbfa0..e8debf0 100644 --- a/apps/machine/src/composables/useTheme.ts +++ b/apps/machine/src/composables/useTheme.ts @@ -23,7 +23,7 @@ const MODE_KEY = 'lamassu-color-mode' const current = ref(loadTheme()) const colorMode = ref(loadColorMode()) -const isElectron = !!(window as Record).electronAPI +const isElectron = !!(window as unknown as Record).electronAPI function loadTheme(): ThemeId { try {