Skip to content

Commit 54dd9fa

Browse files
committed
Removed deprecated windowType usages.
1 parent 66adf27 commit 54dd9fa

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

src/bg/main.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,9 +140,7 @@
140140
},
141141

142142
async openStandalonePopup() {
143-
let win = await browser.windows.getLastFocused({
144-
windowTypes: ["normal"]
145-
});
143+
let win = await browser.windows.getLastFocused();
146144
let [tab] = (await browser.tabs.query({
147145
lastFocusedWindow: true,
148146
active: true

src/ui/popup.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ addEventListener("unload", e => {
2525
let optionsClosed = false;
2626
let tab = (await browser.tabs.query({
2727
windowId: browser.windows ?
28-
(await browser.windows.getLastFocused({windowTypes: ["normal"]})).id
28+
(await browser.windows.getLastFocused()).id
2929
: null,
3030
active: true
3131
}))[0];

0 commit comments

Comments
 (0)