aboutsummaryrefslogtreecommitdiff
path: root/ext/js/api.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/js/api.js')
-rw-r--r--ext/js/api.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/ext/js/api.js b/ext/js/api.js
index 7f552a1e..c65b1702 100644
--- a/ext/js/api.js
+++ b/ext/js/api.js
@@ -29,8 +29,12 @@ function findKanji(text, callback) {
sendMessage('findKanji', {text: text}, callback);
}
-function renderTemplate(data, template, callback) {
- sendMessage('renderTemplate', {data: data, template: template}, callback);
+function renderText(data, template, callback) {
+ sendMessage('renderText', {data: data, template: template}, callback);
+}
+
+function getOptions(callback) {
+ sendMessage('getOptions', null, callback);
}
function getState(callback) {