diff --git a/src/js/support.js b/src/js/support.js index 9bd275781..092ae5cbf 100644 --- a/src/js/support.js +++ b/src/js/support.js @@ -215,7 +215,9 @@ function reportSpecificFilterType() { } function reportSpecificFilterIssue() { - const githubURL = new URL('https://github.com/uBlockOrigin/uAssets/issues/new?template=specific_report_from_ubo.yml'); + const githubURL = new URL( + 'https://github.com/uBlockOrigin/uAssets/issues/new?template=specific_report_from_ubo.yml' + ); const issueType = reportSpecificFilterType(); let title = `${reportedPage.hostname}: ${issueType}`; if ( qs$('#isNSFW').checked ) { @@ -239,18 +241,6 @@ async function updateFilterLists() { vAPI.messaging.send('dashboard', { what: 'forceUpdateAssets' }); } -vAPI.broadcastListener.add(msg => { - switch ( msg.what ) { - case 'assetsUpdated': - showSupportData(); - dom.cl.remove(dom.body, 'updating'); - dom.cl.add(dom.body, 'updated'); - break; - default: - break; - } -}); - /******************************************************************************/ const cmEditor = new CodeMirror(qs$('#supportData'), { @@ -283,6 +273,12 @@ uBlockDashboard.patchCodeMirrorEditor(cmEditor); updateFilterLists(); ev.preventDefault(); }); + vAPI.broadcastListener.add(msg => { + if ( msg.what !== 'staticFilteringDataChanged' ) { return; } + showSupportData(); + dom.cl.remove(dom.body, 'updating'); + dom.cl.add(dom.body, 'updated'); + }); } dom.on('[data-i18n="supportReportSpecificButton"]', 'click', ev => {