From 1202ad261eba2c684351ba4b9a53e68203a8ae45 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Mon, 9 Dec 2019 21:46:24 -0500 Subject: [PATCH] Move apiAudioGetUrl implementation into Backend --- ext/bg/js/api.js | 4 ++-- 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) {