summaryrefslogtreecommitdiff
path: root/ext/fg/js/driver.js
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2017-03-27 22:48:50 -0700
committerAlex Yatskov <alex@foosoft.net>2017-03-27 22:48:50 -0700
commit9de0d34af398b385e140a365a500ff20dda45a7a (patch)
treeb6776b5b55dc764676c6312822b38e9c484bd8d9 /ext/fg/js/driver.js
parent3b0aa88de11427c841f85e860aef91ff5d5c793d (diff)
wip
Diffstat (limited to 'ext/fg/js/driver.js')
-rw-r--r--ext/fg/js/driver.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/fg/js/driver.js b/ext/fg/js/driver.js
index 2324e6b2..5191f18d 100644
--- a/ext/fg/js/driver.js
+++ b/ext/fg/js/driver.js
@@ -168,13 +168,13 @@ window.driver = new class {
} else {
textSource.setEndOffset(length);
- const sentence = docSentenceExtract(textSource, this.options.anki.sentenceExt);
+ const cloze = docClozeExtract(textSource, this.options.anki.sentenceExt);
const url = window.location.href;
this.popup.showTermDefs(
textSource.getRect(),
definitions,
this.options,
- {sentence, url}
+ {cloze, url}
);
this.lastTextSource = textSource;
@@ -194,13 +194,13 @@ window.driver = new class {
if (definitions.length === 0) {
return false;
} else {
- const sentence = docSentenceExtract(textSource, this.options.anki.sentenceExt);
+ const cloze = docClozeExtract(textSource, this.options.anki.sentenceExt);
const url = window.location.href;
this.popup.showKanjiDefs(
textSource.getRect(),
definitions,
this.options,
- {sentence, url}
+ {cloze, url}
);
this.lastTextSource = textSource;