mirror of
https://github.com/bitwarden/browser
synced 2025-12-18 01:03:35 +00:00
Update electron to 11.1.1 (#642)
This commit is contained in:
@@ -156,7 +156,7 @@ export function initFactory(): Function {
|
||||
let theme = await storageService.get<string>(ConstantsService.themeKey);
|
||||
if (theme == null) {
|
||||
theme = platformUtilsService.getDevice() === DeviceType.MacOsDesktop &&
|
||||
remote.systemPreferences.isDarkMode() ? 'dark' : 'light';
|
||||
remote.nativeTheme.shouldUseDarkColors ? 'dark' : 'light';
|
||||
}
|
||||
htmlEl.classList.add('theme_' + theme);
|
||||
stateService.save(ConstantsService.disableFaviconKey,
|
||||
|
||||
Reference in New Issue
Block a user