mirror of https://github.com/gorhill/uBlock.git
Listen to all-filter-lists-reloaded, not all-assets-updated
Related commit:
- 4a92f96206
This commit is contained in:
parent
e93ecfadfa
commit
e46705db00
|
@ -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 => {
|
||||
|
|
Loading…
Reference in New Issue