Fix flashbang

This commit is contained in:
Natsumi
2025-10-15 05:00:11 +11:00
parent 14408b305a
commit 6e09e5fd78
+3 -1
View File
@@ -30,10 +30,12 @@ function changeAppThemeStyle(themeMode) {
themeMode = systemIsDarkMode() ? 'dark' : 'light'; themeMode = systemIsDarkMode() ? 'dark' : 'light';
} }
const themeConfig = THEME_CONFIG[themeMode]; let themeConfig = THEME_CONFIG[themeMode];
if (!themeConfig) { if (!themeConfig) {
console.error('Invalid theme mode:', themeMode); console.error('Invalid theme mode:', themeMode);
// load system theme as fallback
themeMode = systemIsDarkMode() ? 'dark' : 'light'; themeMode = systemIsDarkMode() ? 'dark' : 'light';
themeConfig = THEME_CONFIG[themeMode];
} }
let filePathPrefix = 'file://vrcx/'; let filePathPrefix = 'file://vrcx/';