Skip to content
This repository has been archived by the owner on Feb 25, 2023. It is now read-only.

Commit

Permalink
add missing profileSwitcher
Browse files Browse the repository at this point in the history
  • Loading branch information
siikamiika committed Mar 7, 2020
1 parent de49e7c commit a4df89c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/bg/js/search-query-parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,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.search.options.anki.sentenceExt);
const sentence = docSentenceExtract(textSource, this.search.profileSwitcher.options.anki.sentenceExt);

textSource.setEndOffset(length);

Expand Down

0 comments on commit a4df89c

Please sign in to comment.