Update argument order
This commit is contained in:
parent
9cd4a52b9e
commit
0cbf427ab5
@ -48,8 +48,8 @@ class AudioUriBuilder {
|
||||
return url;
|
||||
}
|
||||
|
||||
async getUri(mode, definition, options) {
|
||||
const handler = this._getUrlHandlers.get(mode);
|
||||
async getUri(definition, source, options) {
|
||||
const handler = this._getUrlHandlers.get(source);
|
||||
if (typeof handler === 'function') {
|
||||
try {
|
||||
return await handler(definition, options);
|
||||
|
@ -515,7 +515,7 @@ class Backend {
|
||||
|
||||
async _onApiAudioGetUri({definition, source, optionsContext}) {
|
||||
const options = this.getOptions(optionsContext);
|
||||
return await this.audioUriBuilder.getUri(source, definition, options);
|
||||
return await this.audioUriBuilder.getUri(definition, source, options);
|
||||
}
|
||||
|
||||
_onApiScreenshotGet({options}, sender) {
|
||||
@ -771,7 +771,7 @@ class Backend {
|
||||
}
|
||||
|
||||
const options = this.getOptions(optionsContext);
|
||||
return await this.audioUriBuilder.getUri(source, definition, options);
|
||||
return await this.audioUriBuilder.getUri(definition, source, options);
|
||||
}
|
||||
|
||||
async _audioInject(definition, fields, sources, optionsContext) {
|
||||
|
Loading…
Reference in New Issue
Block a user