diff options
Diffstat (limited to 'ext/fg/js/api.js')
-rw-r--r-- | ext/fg/js/api.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/fg/js/api.js b/ext/fg/js/api.js index e13c1421..05db4618 100644 --- a/ext/fg/js/api.js +++ b/ext/fg/js/api.js @@ -48,3 +48,7 @@ function bgGetState(callback) { function bgCanAddNotes(definitions, modes, callback) { bgSendMessage('canAddNotes', {definitions, modes}, callback); } + +function bgAddNote(definition, mode, callback) { + bgSendMessage('addNote', {definition: definition, mode: mode}, callback); +} |