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