summaryrefslogtreecommitdiff
path: root/ext/bg/js
diff options
context:
space:
mode:
authorsiikamiika <siikamiika@users.noreply.github.com>2020-03-07 14:27:44 +0200
committersiikamiika <siikamiika@users.noreply.github.com>2020-03-07 14:27:44 +0200
commit24d9001b1449a318113f5ecc5441113cabe7248f (patch)
tree40fd9398905660657e002e76f285e0714b4adaf7 /ext/bg/js
parent387e93dbbc3ebe13f585860da4df0eeda833d49a (diff)
fix options object location
Diffstat (limited to 'ext/bg/js')
-rw-r--r--ext/bg/js/search-query-parser.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/bg/js/search-query-parser.js b/ext/bg/js/search-query-parser.js
index 241dda87..c64d0fea 100644
--- a/ext/bg/js/search-query-parser.js
+++ b/ext/bg/js/search-query-parser.js
@@ -55,7 +55,7 @@ class QueryParser extends TextScanner {
const {definitions, length} = await apiTermsFind(searchText, {}, this.search.getOptionsContext());
if (definitions.length === 0) { return null; }
- const sentence = docSentenceExtract(textSource, this.options.anki.sentenceExt);
+ const sentence = docSentenceExtract(textSource, this.search.options.anki.sentenceExt);
textSource.setEndOffset(length);