mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-10 01:02:08 +01:00
fix improper reporting of internal filter in logger [Firefox]
This commit is contained in:
parent
ce696e5fbe
commit
e675ccf73e
1 changed files with 9 additions and 2 deletions
|
@ -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 a new issue