mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-07 06:56:04 +02:00
Fix flashbang
This commit is contained in:
@@ -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/';
|
||||||
|
|||||||
Reference in New Issue
Block a user