mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 16:53:34 +00:00
theme settings
This commit is contained in:
@@ -119,6 +119,10 @@ export function initFactory(): Function {
|
||||
const htmlEl = window.document.documentElement;
|
||||
htmlEl.classList.add('os_' + platformUtilsService.getDeviceString());
|
||||
htmlEl.classList.add('locale_' + i18nService.translationLocale);
|
||||
const theme = await storageService.get<string>(ConstantsService.themeKey);
|
||||
if (theme != null) {
|
||||
htmlEl.classList.add('theme_' + theme);
|
||||
}
|
||||
stateService.save(ConstantsService.disableFaviconKey,
|
||||
await storageService.get<boolean>(ConstantsService.disableFaviconKey));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user