summaryrefslogtreecommitdiff
path: root/ext/fg/js/api.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/fg/js/api.js')
-rw-r--r--ext/fg/js/api.js26
1 files changed, 13 insertions, 13 deletions
diff --git a/ext/fg/js/api.js b/ext/fg/js/api.js
index da5f6d5a..9026c8d3 100644
--- a/ext/fg/js/api.js
+++ b/ext/fg/js/api.js
@@ -21,30 +21,30 @@
// Background APIs
//
-function sendMessage(action, params, callback) {
+function bgSendMessage(action, params, callback) {
chrome.runtime.sendMessage({action: action, params: params}, callback);
}
-function findTerm(text, callback) {
- sendMessage('findTerm', {text: text}, callback);
+function bgFindTerm(text, callback) {
+ bgSendMessage('findTerm', text, callback);
}
-function findKanji(text, callback) {
- sendMessage('findKanji', {text: text}, callback);
+function bgFindKanji(text, callback) {
+ bgSendMessage('findKanji', text, callback);
}
-function renderText(data, template, callback) {
- sendMessage('renderText', {data: data, template: template}, callback);
+function bgRenderText(data, template, callback) {
+ bgSendMessage('renderText', {data: data, template: template}, callback);
}
-function getOptions(callback) {
- sendMessage('getOptions', null, callback);
+function bgGetOptions(callback) {
+ bgSendMessage('getOptions', null, callback);
}
-function getState(callback) {
- sendMessage('getState', null, callback);
+function bgGetState(callback) {
+ bgSendMessage('getState', null, callback);
}
-function canAddNotes(definitions, callback) {
- sendMessage('canAddNotes', {definitions: definitions}, callback);
+function bgCanAddNotes(definitions, callback) {
+ bgSendMessage('canAddNotes', definitions, callback);
}