Skip to content

Commit

Permalink
Fix for current tab showing the wrong window. Fixes #592
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanKingston committed Jun 14, 2017
1 parent 78ef2e8 commit bfc6f68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webextension/js/popup.js
Expand Up @@ -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];
}
Expand Down

0 comments on commit bfc6f68

Please sign in to comment.