mirror of https://github.com/gorhill/uBlock.git
Fix bad filter counts
This commit is contained in:
parent
39bf6ffd13
commit
cbc0cbadaa
|
@ -380,6 +380,7 @@ const toggleFilterList = (elem, on, ui = false) => {
|
||||||
const updateListNode = listNode => {
|
const updateListNode = listNode => {
|
||||||
if ( listNode === null ) { return; }
|
if ( listNode === null ) { return; }
|
||||||
if ( listNode.dataset.role !== 'node' ) { return; }
|
if ( listNode.dataset.role !== 'node' ) { return; }
|
||||||
|
if ( listNode.dataset.parent === 'root' ) { return; }
|
||||||
const listLeaves = qsa$(listNode, '.listEntry[data-role="leaf"].checked');
|
const listLeaves = qsa$(listNode, '.listEntry[data-role="leaf"].checked');
|
||||||
let usedFilterCount = 0;
|
let usedFilterCount = 0;
|
||||||
let totalFilterCount = 0;
|
let totalFilterCount = 0;
|
||||||
|
|
Loading…
Reference in New Issue