summaryrefslogtreecommitdiff
path: root/ext/bg/js/search-frontend.js
diff options
context:
space:
mode:
authorsiikamiika <siikamiika@users.noreply.github.com>2019-11-09 12:27:09 +0200
committersiikamiika <siikamiika@users.noreply.github.com>2019-11-09 12:27:09 +0200
commit25af532ab7750a456f46b37825d8dbe876363d19 (patch)
treef193ddc7cbb79a9ca92a047a59624b4a53e98b71 /ext/bg/js/search-frontend.js
parentb59a5b8cdb9bf8cdc28701e16c3d581fb96f4ef8 (diff)
enable expression scan toggling on search page
Diffstat (limited to 'ext/bg/js/search-frontend.js')
-rw-r--r--ext/bg/js/search-frontend.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/bg/js/search-frontend.js b/ext/bg/js/search-frontend.js
index b21dac17..63ed0724 100644
--- a/ext/bg/js/search-frontend.js
+++ b/ext/bg/js/search-frontend.js
@@ -25,7 +25,9 @@ async function searchFrontendSetup() {
const options = await apiOptionsGet(optionsContext);
if (!options.scanning.enableOnSearchPage) { return; }
- window.frontendInitializationData = {depth: 1, proxy: false};
+ const ignoreNodes = options.scanning.enableOnPopupExpressions ? [] : ['.expression-scan-toggle', '.expression-scan-toggle *'];
+
+ window.frontendInitializationData = {depth: 1, ignoreNodes, proxy: false};
const scriptSrcs = [
'/fg/js/frontend-api-receiver.js',