From 24d9001b1449a318113f5ecc5441113cabe7248f Mon Sep 17 00:00:00 2001 From: siikamiika Date: Sat, 7 Mar 2020 14:27:44 +0200 Subject: [PATCH] fix options object location --- ext/bg/js/search-query-parser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);