mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-28 12:45:45 +01:00
Let all OS' use system theme on startup
This commit is contained in:
parent
7f5a5a5fbb
commit
b00df0112e
@ -156,11 +156,7 @@ export function initFactory(): Function {
|
||||
htmlEl.classList.add('locale_' + i18nService.translationLocale);
|
||||
let theme = await storageService.get<string>(ConstantsService.themeKey);
|
||||
if (theme == null) {
|
||||
if (platformUtilsService.getDevice() === DeviceType.MacOsDesktop) {
|
||||
theme = await platformUtilsService.getDefaultSystemTheme();
|
||||
} else {
|
||||
theme = 'light';
|
||||
}
|
||||
}
|
||||
htmlEl.classList.add('theme_' + theme);
|
||||
stateService.save(ConstantsService.disableFaviconKey,
|
||||
|
Loading…
Reference in New Issue
Block a user