mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 08:13:42 +00:00
add theme support to browser extension
This commit is contained in:
@@ -77,7 +77,13 @@ export function initFactory(i18nService: I18nService, storageService: StorageSer
|
||||
stateService.save(ConstantsService.disableFaviconKey,
|
||||
await storageService.get<boolean>(ConstantsService.disableFaviconKey));
|
||||
|
||||
let theme = await storageService.get<string>(ConstantsService.themeKey);
|
||||
if (theme == null) {
|
||||
theme = 'light';
|
||||
}
|
||||
window.document.documentElement.classList.add('locale_' + i18nService.translationLocale);
|
||||
window.document.documentElement.classList.add('theme_' + theme);
|
||||
|
||||
authService.init();
|
||||
|
||||
const analytics = new Analytics(window, () => BrowserApi.gaFilter(), null, null, null, () => {
|
||||
|
||||
Reference in New Issue
Block a user