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
1 changed files with 1 additions and 1 deletions

View File

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