diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/bg/main.js | 4 | ||||
-rw-r--r-- | src/ui/popup.js | 2 |
2 files changed, 2 insertions, 4 deletions
diff --git a/src/bg/main.js b/src/bg/main.js index 74df62d..d89ef63 100644 --- a/src/bg/main.js +++ b/src/bg/main.js @@ -140,9 +140,7 @@ }, async openStandalonePopup() { - let win = await browser.windows.getLastFocused({ - windowTypes: ["normal"] - }); + let win = await browser.windows.getLastFocused(); let [tab] = (await browser.tabs.query({ lastFocusedWindow: true, active: true diff --git a/src/ui/popup.js b/src/ui/popup.js index 059e3df..55eff03 100644 --- a/src/ui/popup.js +++ b/src/ui/popup.js @@ -25,7 +25,7 @@ addEventListener("unload", e => { let optionsClosed = false; let tab = (await browser.tabs.query({ windowId: browser.windows ? - (await browser.windows.getLastFocused({windowTypes: ["normal"]})).id + (await browser.windows.getLastFocused()).id : null, active: true }))[0]; |