Fix overwriting const value

This commit is contained in:
toasted-nutbread 2019-11-10 13:56:06 -05:00
parent d6cdd693c8
commit dad685dba4

View File

@ -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) {