aboutsummaryrefslogtreecommitdiff
path: root/ext/bg
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2016-04-24 18:34:31 -0700
committerAlex Yatskov <alex@foosoft.net>2016-04-24 18:34:31 -0700
commita192a8d8b549d5979a427d86c51f94bb5f4be907 (patch)
tree9581777a8b5fb6832e18d5bcd9f3ea8a9a6bbdff /ext/bg
parent8143e372cdb61012ec8683feb01688adfa39dde1 (diff)
Plumbing
Diffstat (limited to 'ext/bg')
-rw-r--r--ext/bg/js/yomichan.js3
1 files changed, 1 insertions, 2 deletions
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,