mirror of
https://github.com/gorhill/uBlock.git
synced 2024-10-06 09:37:12 +02:00
Unconditionally listen to listset changes
This commit is contained in:
parent
34d2a4ea2a
commit
ec70f1d99e
@ -273,12 +273,6 @@ uBlockDashboard.patchCodeMirrorEditor(cmEditor);
|
|||||||
updateFilterLists();
|
updateFilterLists();
|
||||||
ev.preventDefault();
|
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 => {
|
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', ( ) => {
|
dom.on('#selectAllButton', 'click', ( ) => {
|
||||||
cmEditor.focus();
|
cmEditor.focus();
|
||||||
cmEditor.execCommand('selectAll');
|
cmEditor.execCommand('selectAll');
|
||||||
|
Loading…
Reference in New Issue
Block a user