Removed deprecated windowType usages.
This commit is contained in:
parent
66adf2720e
commit
54dd9fa754
|
@ -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
|
||||
|
|
|
@ -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];
|
||||
|
|
Loading…
Reference in New Issue