summaryrefslogtreecommitdiff
path: root/ext/fg
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2017-01-15 22:17:49 -0800
committerAlex Yatskov <alex@foosoft.net>2017-01-15 22:17:49 -0800
commite8840465f07f09fbb9acb6071b94489f02ecd87f (patch)
treea0a4a8bd5ba2783b730e104bbbadd8c1d9975eb7 /ext/fg
parenteae885b9aae58c587e12ec3992b751d79dfc7bd2 (diff)
WIP
Diffstat (limited to 'ext/fg')
-rw-r--r--ext/fg/js/driver.js2
-rw-r--r--ext/fg/js/util.js8
2 files changed, 5 insertions, 5 deletions
diff --git a/ext/fg/js/driver.js b/ext/fg/js/driver.js
index 25e1c57f..e595b350 100644
--- a/ext/fg/js/driver.js
+++ b/ext/fg/js/driver.js
@@ -146,7 +146,7 @@ class Driver {
searchTerms(textSource) {
textSource.setEndOffset(this.options.scanning.length);
- const findFunc = this.options.general.groupResults ? findTermGrouped : findTerm;
+ const findFunc = this.options.general.groupResults ? findTermsGrouped : findTerms;
return findFunc(textSource.text()).then(({definitions, length}) => {
if (definitions.length === 0) {
return false;
diff --git a/ext/fg/js/util.js b/ext/fg/js/util.js
index cedfb887..ef45d08c 100644
--- a/ext/fg/js/util.js
+++ b/ext/fg/js/util.js
@@ -37,12 +37,12 @@ function getOptions() {
return invokeBgApi('getOptions', {});
}
-function findTerm(text) {
- return invokeBgApi('findTerm', {text});
+function findTerms(text) {
+ return invokeBgApi('findTerms', {text});
}
-function findTermGrouped(text) {
- return invokeBgApi('findTermGrouped', {text});
+function findTermsGrouped(text) {
+ return invokeBgApi('findTermsGrouped', {text});
}
function findKanji(text) {