From 72ed8be877133cee805f5995eee60f29c8450301 Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Sun, 13 Nov 2016 21:53:56 -0800 Subject: WIP --- ext/bg/js/translator.js | 2 +- ext/bg/js/yomichan.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/bg/js/translator.js b/ext/bg/js/translator.js index 01213bed..bff0082b 100644 --- a/ext/bg/js/translator.js +++ b/ext/bg/js/translator.js @@ -43,7 +43,7 @@ class Translator { }); } - findTerm(text, enableSoftKatakanaSearch, dictionaries) { + findTerm(text, dictionaries, enableSoftKatakanaSearch) { return this.findTermGroups(text, dictionaries).then(groups => { const textHiragana = wanakana._katakanaToHiragana(text); if (text !== textHiragana && enableSoftKatakanaSearch) { diff --git a/ext/bg/js/yomichan.js b/ext/bg/js/yomichan.js index 62b6c7b1..2b713c02 100644 --- a/ext/bg/js/yomichan.js +++ b/ext/bg/js/yomichan.js @@ -246,7 +246,7 @@ class Yomichan { } promiseCallback( - this.translator.findTerm(text, this.options.enableSoftKatakanaSearch, dictionaries), + this.translator.findTerm(text, dictionaries, this.options.enableSoftKatakanaSearch), callback ); } -- cgit v1.2.3