mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 16:53:34 +00:00
browser version of 287 issue
added condition when badge should set text based on setting
This commit is contained in:
@@ -543,8 +543,12 @@ export default class MainBackground {
|
||||
}
|
||||
}
|
||||
|
||||
this.browserActionSetBadgeText(theText, tabId);
|
||||
this.sidebarActionSetBadgeText(theText, tabId);
|
||||
const disableBadgeCounter = await this.storageService.get<boolean>(ConstantsService.disableBadgeCounterKey);
|
||||
if (!disableBadgeCounter) {
|
||||
this.sidebarActionSetBadgeText(theText, tabId);
|
||||
this.browserActionSetBadgeText(theText, tabId);
|
||||
}
|
||||
|
||||
return;
|
||||
} catch { }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user