mirror of
https://github.com/bitwarden/browser
synced 2025-12-12 22:33:35 +00:00
Update services.module.ts
This commit is contained in:
@@ -91,7 +91,7 @@ export function initFactory(platformUtilsService: PlatformUtilsService, i18nServ
|
|||||||
if (theme == null) {
|
if (theme == null) {
|
||||||
theme = platformUtilsService.getDefaultSystemTheme();
|
theme = platformUtilsService.getDefaultSystemTheme();
|
||||||
|
|
||||||
platformUtilsService.onDefaultSystemThemeChange(theme => {
|
platformUtilsService.onDefaultSystemThemeChange((theme) => {
|
||||||
window.document.documentElement.classList.remove('theme_light', 'theme_dark');
|
window.document.documentElement.classList.remove('theme_light', 'theme_dark');
|
||||||
window.document.documentElement.classList.add('theme_' + theme);
|
window.document.documentElement.classList.add('theme_' + theme);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user