diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2019-12-09 21:46:24 -0500 |
---|---|---|
committer | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2019-12-13 23:11:56 -0500 |
commit | 1202ad261eba2c684351ba4b9a53e68203a8ae45 (patch) | |
tree | 7ec5fec9e1f29ff38f49288f57eb8f22127fa011 /ext | |
parent | f63220b6c501b1a2697e75ba407adb21dbb980b9 (diff) |
Move apiAudioGetUrl implementation into Backend
Diffstat (limited to 'ext')
-rw-r--r-- | ext/bg/js/api.js | 4 | ||||
-rw-r--r-- | ext/bg/js/backend.js | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/ext/bg/js/api.js b/ext/bg/js/api.js index 1c3ad110..db849cc5 100644 --- a/ext/bg/js/api.js +++ b/ext/bg/js/api.js @@ -69,8 +69,8 @@ function apiCommandExec(command, params) { return utilBackend()._onApiCommandExec({command, params}); } -async function apiAudioGetUrl(definition, source, optionsContext) { - return audioGetUrl(definition, source, optionsContext); +function apiAudioGetUrl(definition, source, optionsContext) { + return utilBackend()._onApiAudioGetUrl({definition, source, optionsContext}); } function apiScreenshotGet(options, sender) { diff --git a/ext/bg/js/backend.js b/ext/bg/js/backend.js index 8ae5574c..96f28925 100644 --- a/ext/bg/js/backend.js +++ b/ext/bg/js/backend.js @@ -404,8 +404,8 @@ class Backend { handler(this, params); } - _onApiAudioGetUrl({definition, source, optionsContext}) { - return apiAudioGetUrl(definition, source, optionsContext); + async _onApiAudioGetUrl({definition, source, optionsContext}) { + return audioGetUrl(definition, source, optionsContext); } _onApiScreenshotGet({options}, sender) { |