1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 16:23:44 +00:00

dont allow shorthand property assignments

This commit is contained in:
Kyle Spearrin
2017-12-06 14:23:34 -05:00
parent 5319568d81
commit a4127f2571
24 changed files with 30 additions and 28 deletions

View File

@@ -420,18 +420,19 @@ 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 this.utilsService.getObjFromStorage<boolean>(ConstantsService.disableContextMenuItemKey);
const disabled = await self.utilsService.getObjFromStorage<boolean>(ConstantsService.disableContextMenuItemKey);
if (!disabled) {
await this.buildContextMenu();
this.contextMenuReady(tab, true);
} else {
await this.contextMenusRemoveAll();
this.contextMenuReady(tab, false);
self.contextMenuReady(tab, false);
}
}