From ec70f1d99e2e841c26dda0c069da79d424fb0369 Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Mon, 24 Apr 2023 09:38:37 -0400 Subject: [PATCH] Unconditionally listen to listset changes --- src/js/support.js | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/js/support.js b/src/js/support.js index 092ae5cbf..878f54675 100644 --- a/src/js/support.js +++ b/src/js/support.js @@ -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');