diff options
| author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2021-01-18 22:01:08 -0500 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-18 22:01:08 -0500 | 
| commit | 21fce9f3d98e4381f8813cf9c63410ca1dbd7f91 (patch) | |
| tree | 124a510e4f208bbd7516b2eae98454400e9b4c54 /ext/mixed/js/api.js | |
| parent | 85c723b85f47ff3048ba7aca46a532aa1bc44064 (diff) | |
Audio system refactoring (#1275)
* Simplify details
* Simplify audio creation
* Return an array of sources instead of a single item
* Use sourceIndex instead of index
* Rename APIs
* Return more info about the source
* Return source instead of sourceIndex
Diffstat (limited to 'ext/mixed/js/api.js')
| -rw-r--r-- | ext/mixed/js/api.js | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/ext/mixed/js/api.js b/ext/mixed/js/api.js index 433a52e2..03e58f5e 100644 --- a/ext/mixed/js/api.js +++ b/ext/mixed/js/api.js @@ -97,8 +97,8 @@ const api = (() => {              return this._invoke('suspendAnkiCardsForNote', {noteId});          } -        getDefinitionAudioInfo(source, expression, reading, details) { -            return this._invoke('getDefinitionAudioInfo', {source, expression, reading, details}); +        getExpressionAudioInfoList(source, expression, reading, details) { +            return this._invoke('getExpressionAudioInfoList', {source, expression, reading, details});          }          downloadDefinitionAudio(sources, expression, reading, details) { |