1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-11-23 19:03:02 +01:00

Properly report user-filters in troubleshooting information

User filters are enabled by default, they should be reported
under the `listset` section, along with how many filters are
being enforced.
This commit is contained in:
Raymond Hill 2022-01-11 07:55:37 -05:00
parent 6941ec7fb0
commit 9b22961291
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
2 changed files with 3 additions and 2 deletions

View File

@ -1294,7 +1294,7 @@ const getSupportData = async function() {
listDetails.push(parts.join('.'));
}
}
if ( list.isDefault ) {
if ( list.isDefault || listKey === µb.userFiltersPath ) {
if ( used ) {
defaultListset[listKey] = listDetails.join(', ');
} else {

View File

@ -623,8 +623,9 @@ self.addEventListener('hiddenSettingsChanged', ( ) => {
// User filter list.
newAvailableLists[this.userFiltersPath] = {
content: 'filters',
group: 'user',
title: vAPI.i18n('1pPageName')
title: vAPI.i18n('1pPageName'),
};
// Custom filter lists.