Inform when filter lists are reloaded in logger

Related discussion:
- https://github.com/uBlockOrigin/uBlock-issues/issues/2041#issuecomment-1585685791
This commit is contained in:
Raymond Hill 2023-06-10 11:54:24 -04:00
parent 2f0132c414
commit aa507924f3
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
1 changed files with 12 additions and 0 deletions

View File

@ -834,6 +834,12 @@ self.addEventListener('hiddenSettingsChanged', ( ) => {
vAPI.storage.set({ 'availableFilterLists': µb.availableFilterLists }); vAPI.storage.set({ 'availableFilterLists': µb.availableFilterLists });
logger.writeOne({
realm: 'message',
type: 'info',
text: 'Reloading all filter lists: done'
});
vAPI.messaging.broadcast({ vAPI.messaging.broadcast({
what: 'staticFilteringDataChanged', what: 'staticFilteringDataChanged',
parseCosmeticFilters: µb.userSettings.parseAllABPHideFilters, parseCosmeticFilters: µb.userSettings.parseAllABPHideFilters,
@ -865,6 +871,12 @@ self.addEventListener('hiddenSettingsChanged', ( ) => {
}; };
const onFilterListsReady = lists => { const onFilterListsReady = lists => {
logger.writeOne({
realm: 'message',
type: 'info',
text: 'Reloading all filter lists: start'
});
µb.availableFilterLists = lists; µb.availableFilterLists = lists;
if ( vAPI.Net.canSuspend() ) { if ( vAPI.Net.canSuspend() ) {