diff options
| author | Alex Yatskov <alex@foosoft.net> | 2016-05-07 18:36:06 -0700 |
|---|---|---|
| committer | Alex Yatskov <alex@foosoft.net> | 2016-05-07 18:36:06 -0700 |
| commit | 80f5699d8635134535706752e73bad7425a3e042 (patch) | |
| tree | 1fa2225900871e005a4a653ff0986bb4a172958a /ext/fg/js/api.js | |
| parent | 4a6055d781cd9bafb1887ef4e8ee26d3735ad405 (diff) | |
Note adding now possible
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); +} |