Removed deprecated windowType usages.

This commit is contained in:
hackademix 2018-07-12 15:58:42 +02:00
parent 66adf2720e
commit 54dd9fa754
2 changed files with 2 additions and 4 deletions

View File

@ -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

View File

@ -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];