aboutsummaryrefslogtreecommitdiff
path: root/ext/api.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/api.js')
-rw-r--r--ext/api.js10
1 files changed, 9 insertions, 1 deletions
diff --git a/ext/api.js b/ext/api.js
index 496f8be3..422a3703 100644
--- a/ext/api.js
+++ b/ext/api.js
@@ -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);
}