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.