aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js/yomichan.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/bg/js/yomichan.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))