1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-17 16:53:34 +00:00

theme settings

This commit is contained in:
Kyle Spearrin
2018-05-29 23:28:58 -04:00
parent 689e7a4999
commit 957e460a43
5 changed files with 40 additions and 1 deletions

View File

@@ -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));