Minor code review of last commit

Related commit:
https://github.com/gorhill/uBlock/commit/2b16a10b82
This commit is contained in:
Raymond Hill 2024-02-29 08:37:44 -05:00
parent 2b16a10b82
commit ba95d2bc49
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
1 changed files with 3 additions and 4 deletions

View File

@ -547,10 +547,9 @@ const selectFilterLists = async ( ) => {
after.push(line);
continue;
}
const input = qs$(`[data-key="${list.group}"] [data-key="${listkey}"] > .detailbar input`);
if ( input === null ) { break; }
input.checked = true;
toggleFilterList(input, true, true);
const listEntry = qs$(`[data-key="${list.group}"] [data-key="${listkey}"]`);
if ( listEntry === null ) { break; }
toggleFilterList(listEntry, true);
break;
}
}