mirror of https://github.com/gorhill/uBlock.git
Avoid pointless check of doc id, presence of doc origin is what matter
Related issue: - https://github.com/uBlockOrigin/uBlock-issues/issues/1657
This commit is contained in:
parent
717d8593c5
commit
f1a453d349
|
@ -996,7 +996,7 @@ vAPI.tabs = new vAPI.Tabs();
|
|||
{
|
||||
const NoPageStore = class extends µBlock.PageStore {
|
||||
getNetFilteringSwitch(fctxt) {
|
||||
if ( fctxt && fctxt.docId === 0 ) {
|
||||
if ( fctxt ) {
|
||||
const docOrigin = fctxt.getDocOrigin();
|
||||
if ( docOrigin ) {
|
||||
return µBlock.getNetFilteringSwitch(docOrigin);
|
||||
|
|
Loading…
Reference in New Issue