1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-10-04 16:47:15 +02:00

Fix bad filter counts

This commit is contained in:
Raymond Hill 2023-05-06 17:08:55 -04:00
parent 39bf6ffd13
commit cbc0cbadaa
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -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;