1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-07-08 12:57:57 +02:00

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

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');