aboutsummaryrefslogtreecommitdiff
path: root/ext/mixed/js/audio.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2019-11-10 13:56:06 -0500
committertoasted-nutbread <toasted-nutbread@users.noreply.github.com>2019-11-10 13:56:06 -0500
commitdad685dba42961697c78a26078c0d5a2e0750e8c (patch)
treee216c726f1343cf457607d0758d6dbdb1d6dbdf5 /ext/mixed/js/audio.js
parentd6cdd693c87ffd999cb770172629a256c0b7dde1 (diff)
Fix overwriting const value
Diffstat (limited to 'ext/mixed/js/audio.js')
-rw-r--r--ext/mixed/js/audio.js4
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) {