summaryrefslogtreecommitdiff
path: root/ext/bg
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2016-11-13 21:53:56 -0800
committerAlex Yatskov <alex@foosoft.net>2016-11-13 21:53:56 -0800
commit72ed8be877133cee805f5995eee60f29c8450301 (patch)
tree5678d6a23499fc9af8f48e52d76826e3b8e51fc5 /ext/bg
parent8ad217970f3b0c66c7020d30593cc0c61e1129e9 (diff)
WIP
Diffstat (limited to 'ext/bg')
-rw-r--r--ext/bg/js/translator.js2
-rw-r--r--ext/bg/js/yomichan.js2
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
);
}