1
0
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:
Raymond Hill 2022-11-25 16:01:58 -05:00
parent 62601639f6
commit 5c82b85335
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

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