From 0a9b673e27de04c499e06680d36e804a6a43f673 Mon Sep 17 00:00:00 2001 From: siikamiika Date: Thu, 15 Aug 2019 15:28:30 +0300 Subject: reimplement ignored chars inside source.js only --- ext/mixed/js/display.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'ext/mixed') 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; } -- cgit v1.2.3