1
0
mirror of https://github.com/bitwarden/browser synced 2024-12-27 10:23:48 +01:00

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:
Daniel James Smith 2023-01-31 19:45:40 +01:00 committed by GitHub
parent 2757fcee86
commit 68839631e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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(