mirror of
https://github.com/gorhill/uBlock.git
synced 2024-09-03 17:49:39 +02:00
fix improper reporting of internal filter in logger [Firefox]
This commit is contained in:
parent
ce696e5fbe
commit
e675ccf73e
@ -204,9 +204,16 @@ vAPI.DOMFilterer.prototype = {
|
||||
var out = {
|
||||
declarative: []
|
||||
};
|
||||
var selectors;
|
||||
for ( var entry of this.filterset ) {
|
||||
if ( all === false && entry.internal ) { continue; }
|
||||
out.declarative.push([ entry.selectors, entry.declarations ]);
|
||||
selectors = entry.selectors;
|
||||
if ( all !== true && this.hideNodeAttr !== undefined ) {
|
||||
selectors = selectors
|
||||
.replace('[' + this.hideNodeAttr + ']', '')
|
||||
.replace(/^,\n|^\n/, '');
|
||||
if ( selectors === '' ) { continue; }
|
||||
}
|
||||
out.declarative.push([ selectors, entry.declarations ]);
|
||||
}
|
||||
return out;
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user