aboutsummaryrefslogtreecommitdiff
path: root/ext/fg/js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/fg/js')
-rw-r--r--ext/fg/js/client.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/fg/js/client.js b/ext/fg/js/client.js
index a8fbaa68..e59718d6 100644
--- a/ext/fg/js/client.js
+++ b/ext/fg/js/client.js
@@ -25,7 +25,6 @@ class Client {
this.lastTextSource = null;
this.activateKey = 16;
this.activateBtn = 2;
- this.sentenceExtent = 200;
this.enabled = false;
this.options = {};
this.definitions = null;
@@ -97,7 +96,7 @@ class Client {
} else {
textSource.setEndOffset(length);
- const sentence = Client.extractSentence(textSource, this.sentenceExtent);
+ const sentence = Client.extractSentence(textSource, this.opts.sentenceExtent);
definitions.forEach((definition) => {
definition.url = window.location.href;
definition.sentence = sentence;