aboutsummaryrefslogtreecommitdiff
path: root/ext/bg
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2019-12-09 21:46:24 -0500
committertoasted-nutbread <toasted-nutbread@users.noreply.github.com>2019-12-13 23:11:56 -0500
commit1202ad261eba2c684351ba4b9a53e68203a8ae45 (patch)
tree7ec5fec9e1f29ff38f49288f57eb8f22127fa011 /ext/bg
parentf63220b6c501b1a2697e75ba407adb21dbb980b9 (diff)
Move apiAudioGetUrl implementation into Backend
Diffstat (limited to 'ext/bg')
-rw-r--r--ext/bg/js/api.js4
-rw-r--r--ext/bg/js/backend.js4
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) {