diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2020-09-10 11:57:38 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-10 11:57:38 -0400 |
commit | 35abd517b933036b95bb58b463a48edd1c985bb1 (patch) | |
tree | 34a31589727c6e04659cc7195b5c27b61df5036e /ext/mixed/js/api.js | |
parent | 17ebe6a754d53fad97ab607f17e2bba8d8565361 (diff) |
AudioUriBuilder simplification (#799)
* Rename variables to disambiguate
* Update handler argument convention
* Update getUri argument convention
* Change _getAudioUri argument convention
* Change getDefinitionAudio argument convention
* Add api.getDefinitionAudio definition
Diffstat (limited to 'ext/mixed/js/api.js')
-rw-r--r-- | ext/mixed/js/api.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/ext/mixed/js/api.js b/ext/mixed/js/api.js index 2192fa98..7dc77fb6 100644 --- a/ext/mixed/js/api.js +++ b/ext/mixed/js/api.js @@ -93,8 +93,8 @@ const api = (() => { return this._invoke('templateRender', {data, template, marker}); } - audioGetUri(definition, source, details) { - return this._invoke('audioGetUri', {definition, source, details}); + audioGetUri(source, expression, reading, details) { + return this._invoke('audioGetUri', {source, expression, reading, details}); } commandExec(command, params) { @@ -197,6 +197,10 @@ const api = (() => { return this._invoke('isTabSearchPopup', {tabId}); } + getDefinitionAudio(sources, expression, reading, details) { + return this._invoke('getDefinitionAudio', {sources, expression, reading, details}); + } + // Invoke functions with progress deleteDictionary(dictionaryName, onProgress) { |