From 80fedc4f7afd551481314585336199e53af843c5 Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Mon, 25 Jul 2016 20:28:56 -0700 Subject: Hook up sentence search extent to options --- ext/fg/js/client.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'ext/fg') 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; -- cgit v1.2.3