diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2019-10-09 22:03:56 -0400 |
---|---|---|
committer | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2019-10-09 22:03:56 -0400 |
commit | 22b218d17238cc003938ef46403596c2183a9c1b (patch) | |
tree | f6c8158b6974ef164df394429c0058e65f8426ca /ext/bg/js/api.js | |
parent | 8be0ddeb26ec5a7bf8d3044852754c4625a27230 (diff) |
Pass optionsContext to audioBuildUrl handlers
Diffstat (limited to 'ext/bg/js/api.js')
-rw-r--r-- | ext/bg/js/api.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/ext/bg/js/api.js b/ext/bg/js/api.js index ed7171b5..d12104bf 100644 --- a/ext/bg/js/api.js +++ b/ext/bg/js/api.js @@ -68,7 +68,8 @@ async function apiDefinitionAdd(definition, mode, context, optionsContext) { await audioInject( definition, options.anki.terms.fields, - options.general.audioSource + options.general.audioSource, + optionsContext ); } @@ -174,8 +175,8 @@ apiCommandExec.handlers = { } }; -async function apiAudioGetUrl(definition, source) { - return audioBuildUrl(definition, source); +async function apiAudioGetUrl(definition, source, optionsContext) { + return audioBuildUrl(definition, source, optionsContext); } async function apiInjectScreenshot(definition, fields, screenshot) { |