aboutsummaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-12-21 19:18:39 -0500
committerGitHub <noreply@github.com>2020-12-21 19:18:39 -0500
commit9dd2a9c98e72f1e546499057d48b8bbe3c5eb330 (patch)
treeba922be0a02a6b80ffeed1bae8c1649445c8f20a /ext
parentabc017545c6fce1c4b754a560f19d3ccaaf82eca (diff)
Fix Display._definitionTextScanner not ignoring certain elements (#1153)
Diffstat (limited to 'ext')
-rw-r--r--ext/mixed/js/display.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/mixed/js/display.js b/ext/mixed/js/display.js
index 4929cfaa..22021f5c 100644
--- a/ext/mixed/js/display.js
+++ b/ext/mixed/js/display.js
@@ -1772,6 +1772,8 @@ class Display extends EventDispatcher {
searchOnClick: true,
searchOnClickOnly: true
});
+ const excludeSelectors = ['.scan-disable', '.scan-disable *'];
+ this._definitionTextScanner.excludeSelector = excludeSelectors.join(',');
this._definitionTextScanner.prepare();
this._definitionTextScanner.on('searched', this._onDefinitionTextScannerSearched.bind(this));
}