From e8840465f07f09fbb9acb6071b94489f02ecd87f Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Sun, 15 Jan 2017 22:17:49 -0800 Subject: WIP --- ext/fg/js/driver.js | 2 +- ext/fg/js/util.js | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'ext/fg/js') 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) { -- cgit v1.2.3