mirror of
https://github.com/gorhill/uBlock.git
synced 2024-10-06 09:37:12 +02:00
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
Block a user