summaryrefslogtreecommitdiff
path: root/ext/mixed/js/display.js
diff options
context:
space:
mode:
authorsiikamiika <siikamiika@users.noreply.github.com>2019-08-14 22:54:42 +0300
committersiikamiika <siikamiika@users.noreply.github.com>2019-08-14 22:54:42 +0300
commit658e5ddff13f4ec392dc110004635e22d468525a (patch)
tree731d79146922885e951fbec57a05d6393bcf13f1 /ext/mixed/js/display.js
parente23d4b9a82581f3cf1118e31d077fc9cdaff7573 (diff)
ignore zero-width non-joiner
fixes #179
Diffstat (limited to 'ext/mixed/js/display.js')
-rw-r--r--ext/mixed/js/display.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/mixed/js/display.js b/ext/mixed/js/display.js
index 3bb78fe1..6b9c295b 100644
--- a/ext/mixed/js/display.js
+++ b/ext/mixed/js/display.js
@@ -83,7 +83,8 @@ class Display {
const textSource = docRangeFromPoint({x: e.clientX, y: e.clientY});
textSource.setEndOffset(this.options.scanning.length);
- const {definitions, length} = await apiTermsFind(textSource.text());
+ const {text} = textSource.text();
+ const {definitions, length} = await apiTermsFind(text);
if (definitions.length === 0) {
return false;
}