Move apiAudioGetUrl implementation into Backend
This commit is contained in:
parent
f63220b6c5
commit
1202ad261e
@ -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) {
|
||||||
|
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user