1
0
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:
Oscar Hinton
2021-01-27 22:50:18 +01:00
committed by GitHub
parent c09ba7051f
commit 5d953fd2fc
7 changed files with 1505 additions and 1140 deletions

View File

@@ -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,