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
1 changed files with 1 additions and 5 deletions

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,