mirror of https://github.com/gorhill/uBlock.git
Need valid tab id for scriptlet injection
This commit is contained in:
parent
a60a5c2772
commit
033aa9cfad
|
@ -1135,6 +1135,7 @@ const webRequest = {
|
||||||
vAPI.net.addListener(
|
vAPI.net.addListener(
|
||||||
'onResponseStarted',
|
'onResponseStarted',
|
||||||
details => {
|
details => {
|
||||||
|
if ( details.tabId === -1 ) { return; }
|
||||||
const pageStore = µb.pageStoreFromTabId(details.tabId);
|
const pageStore = µb.pageStoreFromTabId(details.tabId);
|
||||||
if ( pageStore === null ) { return; }
|
if ( pageStore === null ) { return; }
|
||||||
if ( pageStore.getNetFilteringSwitch() === false ) { return; }
|
if ( pageStore.getNetFilteringSwitch() === false ) { return; }
|
||||||
|
|
Loading…
Reference in New Issue