diff options
author | Alex Yatskov <alex@foosoft.net> | 2016-03-26 18:10:22 -0700 |
---|---|---|
committer | Alex Yatskov <alex@foosoft.net> | 2016-03-26 18:10:22 -0700 |
commit | 8e2134bb56ab659f74cb79b399137d83a3457e27 (patch) | |
tree | 4316a6f1fde7fc9920390f18954cc5e4ab5df4c9 /ext/api.js | |
parent | c70876c410e0c2fd5ea5d00fee25282df38e5f8b (diff) |
WIP
Diffstat (limited to 'ext/api.js')
-rw-r--r-- | ext/api.js | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -22,5 +22,13 @@ function sendMessage(action, data, callback) { } function findTerm(text, callback) { - sendMessage('findTerm', {term: text}, callback); + sendMessage('findTerm', {text: text}, callback); +} + +function findKanji(text, callback) { + sendMessage('findKanji', {text: text}, callback); +} + +function getState(callback) { + sendMessage('getState', null, callback); } |