mirror of https://github.com/gorhill/uBlock.git
Be sure we query for the current window
Related issue: - https://github.com/uBlockOrigin/uBOL-issues/issues/14#issuecomment-1327181436
This commit is contained in:
parent
92397baa39
commit
96fdae726a
|
@ -260,7 +260,10 @@ dom.on('#lessButton', 'click', ( ) => {
|
|||
/******************************************************************************/
|
||||
|
||||
async function init() {
|
||||
const [ tab ] = await browser.tabs.query({ active: true });
|
||||
const [ tab ] = await browser.tabs.query({
|
||||
active: true,
|
||||
windowId: browser.windows.WINDOW_ID_CURRENT,
|
||||
});
|
||||
if ( tab instanceof Object === false ) { return true; }
|
||||
Object.assign(currentTab, tab);
|
||||
|
||||
|
|
Loading…
Reference in New Issue