diff options
| -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) { |