Fix overwriting const value
This commit is contained in:
parent
d6cdd693c8
commit
dad685dba4
@ -125,10 +125,10 @@ async function audioGetFromSources(expression, sources, optionsContext, willDown
|
|||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const audio = await audioGetFromUrl(url, willDownload);
|
let audio = await audioGetFromUrl(url, willDownload);
|
||||||
if (willDownload) {
|
if (willDownload) {
|
||||||
// AnkiConnect handles downloading URLs into cards
|
// AnkiConnect handles downloading URLs into cards
|
||||||
audio = null
|
audio = null;
|
||||||
}
|
}
|
||||||
const result = {audio, url, source};
|
const result = {audio, url, source};
|
||||||
if (cache !== null) {
|
if (cache !== null) {
|
||||||
|
Loading…
Reference in New Issue
Block a user