diff options
author | Alex Yatskov <alex@foosoft.net> | 2016-09-15 21:03:58 -0700 |
---|---|---|
committer | Alex Yatskov <alex@foosoft.net> | 2016-09-15 21:03:58 -0700 |
commit | b969e8952c551fdc7c150dcc111eccdc90ac7408 (patch) | |
tree | 2fa21a903155412870c1807f5cc2ee8cab07f47f /ext/fg/js/client.js | |
parent | b87611cfddf5ca0e1529b88ed1610ebe0d4657e6 (diff) |
Cleanup
Diffstat (limited to 'ext/fg/js/client.js')
-rw-r--r-- | ext/fg/js/client.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/fg/js/client.js b/ext/fg/js/client.js index daeabf99..717b5873 100644 --- a/ext/fg/js/client.js +++ b/ext/fg/js/client.js @@ -116,7 +116,7 @@ class Client { return canAddDefinitions(definitions, ['term_kanji', 'term_kana']); }).then(states => { if (states !== null) { - states.forEach((state, index) => this.popup.sendMessage('setActionState', {index, state, sequence })); + states.forEach((state, index) => this.popup.invokeApi('setActionState', {index, state, sequence})); } }); } @@ -158,7 +158,7 @@ class Client { const state = {[mode]: false}; addDefinition(this.definitions[index], mode).then(success => { if (success) { - this.popup.sendMessage('setActionState', {index, state, sequence: this.sequence}); + this.popup.invokeApi('setActionState', {index, state, sequence: this.sequence}); } else { alert('Note could not be added'); } @@ -195,7 +195,7 @@ class Client { return canAddDefinitions(definitions, ['kanji']); }).then(states => { if (states !== null) { - states.forEach((state, index) => this.popup.sendMessage('setActionState', {index, state, sequence})); + states.forEach((state, index) => this.popup.invokeApi('setActionState', {index, state, sequence})); } }); }); |