diff options
Diffstat (limited to 'ext/bg/js')
-rw-r--r-- | ext/bg/js/yomichan.js | 6 |
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)) |