diff --git a/src/background/main.background.ts b/src/background/main.background.ts index 637024d50e..3b9298c92d 100644 --- a/src/background/main.background.ts +++ b/src/background/main.background.ts @@ -420,19 +420,18 @@ export default class MainBackground { return; } - const self = this; const tab = await this.tabsQueryFirst({ active: true, windowId: chrome.windows.WINDOW_ID_CURRENT }); if (!tab) { return; } - const disabled = await self.utilsService.getObjFromStorage(ConstantsService.disableContextMenuItemKey); + const disabled = await this.utilsService.getObjFromStorage(ConstantsService.disableContextMenuItemKey); if (!disabled) { await this.buildContextMenu(); this.contextMenuReady(tab, true); } else { await this.contextMenusRemoveAll(); - self.contextMenuReady(tab, false); + this.contextMenuReady(tab, false); } }