diff options
author | Alex Yatskov <alex@foosoft.net> | 2016-05-05 20:27:04 -0700 |
---|---|---|
committer | Alex Yatskov <alex@foosoft.net> | 2016-05-05 20:27:04 -0700 |
commit | 809e4f855fe26f602f65f072a6e8f2cd7b96359f (patch) | |
tree | eaf2953ebb1619f2569ed063855af3e32a3bda99 /ext/fg/js/api.js | |
parent | 22cbafb7b731be5cc70dbd0b0ad3372e8efdc1f0 (diff) |
More cleanup
Diffstat (limited to 'ext/fg/js/api.js')
-rw-r--r-- | ext/fg/js/api.js | 26 |
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); } |