mirror of https://github.com/gorhill/uBlock.git
Be sure procedural filterer is present before use
Related issue: - https://github.com/uBlockOrigin/uBlock-issues/issues/2407
This commit is contained in:
parent
8c64c3c6ac
commit
d77331f73a
|
@ -659,10 +659,13 @@ vAPI.DOMFilterer = class {
|
|||
...this.proceduralFilterer.selectors.values()
|
||||
);
|
||||
}
|
||||
for ( const json of this.convertedProceduralFilters ) {
|
||||
out.procedural.push(
|
||||
this.proceduralFiltererInstance().createProceduralFilter(json)
|
||||
);
|
||||
const proceduralFilterer = this.proceduralFiltererInstance();
|
||||
if ( proceduralFilterer !== null ) {
|
||||
for ( const json of this.convertedProceduralFilters ) {
|
||||
out.procedural.push(
|
||||
proceduralFilterer.createProceduralFilter(json)
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
return out;
|
||||
|
|
Loading…
Reference in New Issue