From bfc6f68978030ec45a4f0f8ce79c9828ac76e1d8 Mon Sep 17 00:00:00 2001 From: Jonathan Kingston Date: Wed, 14 Jun 2017 23:35:33 +0100 Subject: [PATCH] Fix for current tab showing the wrong window. Fixes #592 --- webextension/js/popup.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webextension/js/popup.js b/webextension/js/popup.js index 23b49ee..2069560 100644 --- a/webextension/js/popup.js +++ b/webextension/js/popup.js @@ -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]; }