Fix for current tab showing the wrong window. Fixes #592
This commit is contained in:
parent
78ef2e8304
commit
bfc6f68978
1 changed files with 1 additions and 1 deletions
|
@ -134,7 +134,7 @@ const Logic = {
|
||||||
},
|
},
|
||||||
|
|
||||||
async currentTab() {
|
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) {
|
if (activeTabs.length > 0) {
|
||||||
return activeTabs[0];
|
return activeTabs[0];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue