From 9b22961291ce33b08956b69f9ac8dcf9fbc349cd Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Tue, 11 Jan 2022 07:55:37 -0500 Subject: [PATCH] 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. --- src/js/messaging.js | 2 +- src/js/storage.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/js/messaging.js b/src/js/messaging.js index b2f7cc3d5..f59e8c2fc 100644 --- a/src/js/messaging.js +++ b/src/js/messaging.js @@ -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 { diff --git a/src/js/storage.js b/src/js/storage.js index 2532a0eb8..d557ac7d6 100644 --- a/src/js/storage.js +++ b/src/js/storage.js @@ -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.