mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
Use currentWindow, as suggested
This commit is contained in:
parent
62601639f6
commit
5c82b85335
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue