mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-24 12:06:15 +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);
|
htmlEl.classList.add('locale_' + i18nService.translationLocale);
|
||||||
let theme = await storageService.get<string>(ConstantsService.themeKey);
|
let theme = await storageService.get<string>(ConstantsService.themeKey);
|
||||||
if (theme == null) {
|
if (theme == null) {
|
||||||
if (platformUtilsService.getDevice() === DeviceType.MacOsDesktop) {
|
theme = await platformUtilsService.getDefaultSystemTheme();
|
||||||
theme = await platformUtilsService.getDefaultSystemTheme();
|
|
||||||
} else {
|
|
||||||
theme = 'light';
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
htmlEl.classList.add('theme_' + theme);
|
htmlEl.classList.add('theme_' + theme);
|
||||||
stateService.save(ConstantsService.disableFaviconKey,
|
stateService.save(ConstantsService.disableFaviconKey,
|
||||||
|
Loading…
Reference in New Issue
Block a user