diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2019-11-10 13:56:06 -0500 |
---|---|---|
committer | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2019-11-10 13:56:06 -0500 |
commit | dad685dba42961697c78a26078c0d5a2e0750e8c (patch) | |
tree | e216c726f1343cf457607d0758d6dbdb1d6dbdf5 /ext/mixed/js/audio.js | |
parent | d6cdd693c87ffd999cb770172629a256c0b7dde1 (diff) |
Fix overwriting const value
Diffstat (limited to 'ext/mixed/js/audio.js')
-rw-r--r-- | ext/mixed/js/audio.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/mixed/js/audio.js b/ext/mixed/js/audio.js index 8198f5ec..ff50dee1 100644 --- a/ext/mixed/js/audio.js +++ b/ext/mixed/js/audio.js @@ -125,10 +125,10 @@ async function audioGetFromSources(expression, sources, optionsContext, willDown } try { - const audio = await audioGetFromUrl(url, willDownload); + let audio = await audioGetFromUrl(url, willDownload); if (willDownload) { // AnkiConnect handles downloading URLs into cards - audio = null + audio = null; } const result = {audio, url, source}; if (cache !== null) { |