1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-18 09:13:33 +00:00

browser version of 287 issue

added condition when badge should set text based on setting
This commit is contained in:
Vlad
2021-02-22 01:35:14 +03:00
parent 2ac9f92267
commit eb59c9e692
48 changed files with 287 additions and 4 deletions

View File

@@ -86,9 +86,12 @@ export function initFactory(platformUtilsService: PlatformUtilsService, i18nServ
}
if (BrowserApi.getBackgroundPage() != null) {
stateService.save(ConstantsService.disableFaviconKey,
await stateService.save(ConstantsService.disableFaviconKey,
await storageService.get<boolean>(ConstantsService.disableFaviconKey));
await stateService.save(ConstantsService.disableBadgeCounterKey,
await storageService.get<boolean>(ConstantsService.disableBadgeCounterKey));
let theme = await storageService.get<string>(ConstantsService.themeKey);
if (theme == null) {
theme = platformUtilsService.getDefaultSystemTheme();