From 68839631e5f268d63cb32634582f1c67e569c5ec Mon Sep 17 00:00:00 2001 From: Daniel James Smith Date: Tue, 31 Jan 2023 19:45:40 +0100 Subject: [PATCH] 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` --- apps/browser/src/background/main.background.ts | 6 ------ 1 file changed, 6 deletions(-) diff --git a/apps/browser/src/background/main.background.ts b/apps/browser/src/background/main.background.ts index c7fda5d334f..6b92367193c 100644 --- a/apps/browser/src/background/main.background.ts +++ b/apps/browser/src/background/main.background.ts @@ -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(