Fix for current tab showing the wrong window. Fixes #592

This commit is contained in:
Jonathan Kingston 2017-06-14 23:35:33 +01:00
parent 78ef2e8304
commit bfc6f68978

View file

@ -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];
} }