Remove unneeded sidebarAction in main.background (#4544)
With https://github.com/bitwarden/clients/pull/3571 the updating of the badge got refactored. Moving this variable/action into `browserApi.getSidebarAction`
This commit is contained in:
parent
2757fcee86
commit
68839631e5
|
@ -192,7 +192,6 @@ export default class MainBackground {
|
|||
private tabsBackground: TabsBackground;
|
||||
private webRequestBackground: WebRequestBackground;
|
||||
|
||||
private sidebarAction: any;
|
||||
private syncTimeout: any;
|
||||
private isSafari: boolean;
|
||||
private nativeMessagingBackground: NativeMessagingBackground;
|
||||
|
@ -491,11 +490,6 @@ export default class MainBackground {
|
|||
|
||||
// Other fields
|
||||
this.isSafari = this.platformUtilsService.isSafari();
|
||||
this.sidebarAction = this.isSafari
|
||||
? null
|
||||
: typeof opr !== "undefined" && opr.sidebarAction
|
||||
? opr.sidebarAction
|
||||
: (window as any).chrome.sidebarAction;
|
||||
|
||||
// Background
|
||||
this.runtimeBackground = new RuntimeBackground(
|
||||
|
|
Loading…
Reference in New Issue