1
0
mirror of https://github.com/bitwarden/desktop.git synced 2024-06-25 10:26:00 +02:00

Let all OS' use system theme on startup

This commit is contained in:
Tom Rittson 2021-05-31 14:04:36 +10:00 committed by Thomas Rittson
parent 7f5a5a5fbb
commit b00df0112e

View File

@ -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';
}
theme = await platformUtilsService.getDefaultSystemTheme();
}
htmlEl.classList.add('theme_' + theme);
stateService.save(ConstantsService.disableFaviconKey,