diff --git a/src/background/main.background.ts b/src/background/main.background.ts index 5b4d9e563c..9cc65a56a7 100644 --- a/src/background/main.background.ts +++ b/src/background/main.background.ts @@ -75,7 +75,7 @@ export default class MainBackground { // Other fields this.sidebarAction = (typeof opr !== 'undefined') && opr.sidebarAction ? - opr.sidebarAction : chrome.sidebarAction; + opr.sidebarAction : (window as any).chrome.sidebarAction; } private async buildContextMenu() {