diff options
author | siikamiika <siikamiika@users.noreply.github.com> | 2019-08-15 15:28:30 +0300 |
---|---|---|
committer | siikamiika <siikamiika@users.noreply.github.com> | 2019-08-15 15:28:30 +0300 |
commit | 0a9b673e27de04c499e06680d36e804a6a43f673 (patch) | |
tree | c4da0948583d010c628375572c02ae21c0183abe /ext/mixed/js | |
parent | 658e5ddff13f4ec392dc110004635e22d468525a (diff) |
reimplement ignored chars inside source.js only
Diffstat (limited to 'ext/mixed/js')
-rw-r--r-- | ext/mixed/js/display.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/mixed/js/display.js b/ext/mixed/js/display.js index 6b9c295b..3bb78fe1 100644 --- a/ext/mixed/js/display.js +++ b/ext/mixed/js/display.js @@ -83,8 +83,7 @@ class Display { const textSource = docRangeFromPoint({x: e.clientX, y: e.clientY}); textSource.setEndOffset(this.options.scanning.length); - const {text} = textSource.text(); - const {definitions, length} = await apiTermsFind(text); + const {definitions, length} = await apiTermsFind(textSource.text()); if (definitions.length === 0) { return false; } |