summaryrefslogtreecommitdiff
path: root/ext/bg/js/backend.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-09-10 11:57:38 -0400
committerGitHub <noreply@github.com>2020-09-10 11:57:38 -0400
commit35abd517b933036b95bb58b463a48edd1c985bb1 (patch)
tree34a31589727c6e04659cc7195b5c27b61df5036e /ext/bg/js/backend.js
parent17ebe6a754d53fad97ab607f17e2bba8d8565361 (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/bg/js/backend.js')
-rw-r--r--ext/bg/js/backend.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/ext/bg/js/backend.js b/ext/bg/js/backend.js
index 1bc831e9..37a5c77e 100644
--- a/ext/bg/js/backend.js
+++ b/ext/bg/js/backend.js
@@ -508,8 +508,8 @@ class Backend {
return this._runCommand(command, params);
}
- async _onApiAudioGetUri({definition, source, details}) {
- return await this._audioUriBuilder.getUri(definition, source, details);
+ async _onApiAudioGetUri({source, expression, reading, details}) {
+ return await this._audioUriBuilder.getUri(source, expression, reading, details);
}
_onApiScreenshotGet({options}, sender) {
@@ -828,8 +828,8 @@ class Backend {
return (tab !== null);
}
- async _onApiGetDefinitionAudio({definition, sources, details}) {
- return this._getDefinitionAudio(definition, sources, details);
+ async _onApiGetDefinitionAudio({sources, expression, reading, details}) {
+ return this._getDefinitionAudio(sources, expression, reading, details);
}
// Command handlers
@@ -1637,7 +1637,7 @@ class Backend {
}
}
- async _getDefinitionAudio(definition, sources, details) {
- return await this._audioSystem.getDefinitionAudio(definition, sources, details);
+ async _getDefinitionAudio(sources, expression, reading, details) {
+ return await this._audioSystem.getDefinitionAudio(sources, expression, reading, details);
}
}