Merge pull request #593 from jonathanKingston/current-tab-window
Fix for current tab showing the wrong window. Fixes #592
This commit is contained in:
commit
59f2b8a764
2 changed files with 3 additions and 2 deletions
|
@ -163,7 +163,6 @@ const assignManager = {
|
|||
remove = true;
|
||||
}
|
||||
await this._setOrRemoveAssignment(tab.id, info.pageUrl, userContextId, remove);
|
||||
this.calculateContextMenu(tab);
|
||||
}
|
||||
},
|
||||
|
||||
|
@ -216,6 +215,8 @@ const assignManager = {
|
|||
event: `${actionName}-container-assignment`,
|
||||
userContextId: userContextId,
|
||||
});
|
||||
const tab = await browser.tabs.get(tabId);
|
||||
this.calculateContextMenu(tab);
|
||||
},
|
||||
|
||||
async _getAssignment(tab) {
|
||||
|
|
|
@ -134,7 +134,7 @@ const Logic = {
|
|||
},
|
||||
|
||||
async currentTab() {
|
||||
const activeTabs = await browser.tabs.query({active: true});
|
||||
const activeTabs = await browser.tabs.query({active: true, windowId: browser.windows.WINDOW_ID_CURRENT});
|
||||
if (activeTabs.length > 0) {
|
||||
return activeTabs[0];
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue