diff options
Diffstat (limited to 'ext/fg')
-rw-r--r-- | ext/fg/js/driver.js | 2 | ||||
-rw-r--r-- | ext/fg/js/util.js | 8 |
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) { |