From a192a8d8b549d5979a427d86c51f94bb5f4be907 Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Sun, 24 Apr 2016 18:34:31 -0700 Subject: Plumbing --- ext/bg/js/yomichan.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'ext/bg/js') diff --git a/ext/bg/js/yomichan.js b/ext/bg/js/yomichan.js index 110fb403..7c802675 100644 --- a/ext/bg/js/yomichan.js +++ b/ext/bg/js/yomichan.js @@ -49,8 +49,7 @@ class Yomichan { } onMessage(request, sender, callback) { - const {action, data} = request; - const handlers = { + const {action, data} = request, handlers = { findKanji: ({text}) => this.translator.onFindKanji(text), findTerm: ({text}) => this.translator.findTerm(text), getState: () => this.state, -- cgit v1.2.3