summaryrefslogtreecommitdiff
path: root/ext/bg/js
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2016-05-05 20:27:04 -0700
committerAlex Yatskov <alex@foosoft.net>2016-05-05 20:27:04 -0700
commit809e4f855fe26f602f65f072a6e8f2cd7b96359f (patch)
treeeaf2953ebb1619f2569ed063855af3e32a3bda99 /ext/bg/js
parent22cbafb7b731be5cc70dbd0b0ad3372e8efdc1f0 (diff)
More cleanup
Diffstat (limited to 'ext/bg/js')
-rw-r--r--ext/bg/js/yomichan.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/bg/js/yomichan.js b/ext/bg/js/yomichan.js
index e7e674ac..062e5e72 100644
--- a/ext/bg/js/yomichan.js
+++ b/ext/bg/js/yomichan.js
@@ -50,9 +50,9 @@ class Yomichan {
onMessage(request, sender, callback) {
const {action, params} = request, handlers = {
- canAddNotes: ({definitions}) => this.ankiInvoke('canAddNotes', definitions, callback),
- findKanji: ({text}) => callback(this.translator.findKanji(text)),
- findTerm: ({text}) => callback(this.translator.findTerm(text)),
+ canAddNotes: (definitions) => this.ankiInvoke('canAddNotes', definitions, callback),
+ findKanji: (text) => callback(this.translator.findKanji(text)),
+ findTerm: (text) => callback(this.translator.findTerm(text)),
getOptions: () => callback(this.options),
getState: () => callback(this.state),
renderText: ({data, template}) => callback(Handlebars.templates[template](data))