From 5319568d81d18b7105d59d47cd4d8c8a00946995 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Wed, 6 Dec 2017 14:09:05 -0500 Subject: [PATCH] self ref unnecessary --- src/background/main.background.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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); } }