Unconditionally listen to listset changes

This commit is contained in:
Raymond Hill 2023-04-24 09:38:37 -04:00
parent 34d2a4ea2a
commit ec70f1d99e
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
1 changed files with 7 additions and 6 deletions

View File

@ -273,12 +273,6 @@ 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 => {
@ -304,6 +298,13 @@ uBlockDashboard.patchCodeMirrorEditor(cmEditor);
});
}
vAPI.broadcastListener.add(msg => {
if ( msg.what !== 'staticFilteringDataChanged' ) { return; }
showSupportData();
dom.cl.remove(dom.body, 'updating');
dom.cl.add(dom.body, 'updated');
});
dom.on('#selectAllButton', 'click', ( ) => {
cmEditor.focus();
cmEditor.execCommand('selectAll');