Move apiAudioGetUrl implementation into Backend

This commit is contained in:
toasted-nutbread 2019-12-09 21:46:24 -05:00
parent f63220b6c5
commit 1202ad261e
2 changed files with 4 additions and 4 deletions

View File

@ -69,8 +69,8 @@ function apiCommandExec(command, params) {
return utilBackend()._onApiCommandExec({command, params}); return utilBackend()._onApiCommandExec({command, params});
} }
async function apiAudioGetUrl(definition, source, optionsContext) { function apiAudioGetUrl(definition, source, optionsContext) {
return audioGetUrl(definition, source, optionsContext); return utilBackend()._onApiAudioGetUrl({definition, source, optionsContext});
} }
function apiScreenshotGet(options, sender) { function apiScreenshotGet(options, sender) {

View File

@ -404,8 +404,8 @@ class Backend {
handler(this, params); handler(this, params);
} }
_onApiAudioGetUrl({definition, source, optionsContext}) { async _onApiAudioGetUrl({definition, source, optionsContext}) {
return apiAudioGetUrl(definition, source, optionsContext); return audioGetUrl(definition, source, optionsContext);
} }
_onApiScreenshotGet({options}, sender) { _onApiScreenshotGet({options}, sender) {