mirror of https://github.com/gorhill/uBlock.git
Use currentWindow, as suggested
This commit is contained in:
parent
62601639f6
commit
5c82b85335
|
@ -262,7 +262,7 @@ dom.on('#lessButton', 'click', ( ) => {
|
||||||
async function init() {
|
async function init() {
|
||||||
const [ tab ] = await browser.tabs.query({
|
const [ tab ] = await browser.tabs.query({
|
||||||
active: true,
|
active: true,
|
||||||
windowId: browser.windows.WINDOW_ID_CURRENT,
|
currentWindow: true,
|
||||||
});
|
});
|
||||||
if ( tab instanceof Object === false ) { return true; }
|
if ( tab instanceof Object === false ) { return true; }
|
||||||
Object.assign(currentTab, tab);
|
Object.assign(currentTab, tab);
|
||||||
|
|
Loading…
Reference in New Issue