summaryrefslogtreecommitdiff
path: root/ext/bg/js/yomichan.js
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2016-09-10 22:25:16 -0700
committerAlex Yatskov <alex@foosoft.net>2016-09-10 22:25:16 -0700
commit3ec57d5bf658c247835fc933c2c41ea4e5ea52f6 (patch)
tree05afad7b1e62c990b0cbfe21b54f0a1e1f6c62dc /ext/bg/js/yomichan.js
parent058739988302513c8496e569cf3a4fd1eb5920b4 (diff)
Fixes
Diffstat (limited to 'ext/bg/js/yomichan.js')
-rw-r--r--ext/bg/js/yomichan.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/bg/js/yomichan.js b/ext/bg/js/yomichan.js
index 716c622a..557f8780 100644
--- a/ext/bg/js/yomichan.js
+++ b/ext/bg/js/yomichan.js
@@ -297,7 +297,7 @@ class Yomichan {
}
api_findTerm({text, callback}) {
- callback(this.translator.findTerm(text));
+ this.translator.findTerm(text).then((result) => callback(result));
}
api_getDeckNames({callback}) {