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