Update services.module.ts
This commit is contained in:
parent
260820711e
commit
cc59905cc2
|
@ -91,7 +91,7 @@ export function initFactory(platformUtilsService: PlatformUtilsService, i18nServ
|
|||
if (theme == null) {
|
||||
theme = platformUtilsService.getDefaultSystemTheme();
|
||||
|
||||
platformUtilsService.onDefaultSystemThemeChange(theme => {
|
||||
platformUtilsService.onDefaultSystemThemeChange((theme) => {
|
||||
window.document.documentElement.classList.remove('theme_light', 'theme_dark');
|
||||
window.document.documentElement.classList.add('theme_' + theme);
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue