fix options object location

This commit is contained in:
siikamiika 2020-03-07 14:27:44 +02:00
parent 387e93dbbc
commit 24d9001b14

View File

@ -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);