Continue without cover art if it can't be found.
This commit is contained in:
parent
cd88730d1c
commit
b4c1daeea9
|
@ -5,7 +5,13 @@ window.addEventListener('DOMContentLoaded', async () => {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const image = await getCoverArt(listen);
|
let image;
|
||||||
|
try {
|
||||||
|
image = await getCoverArt(listen);
|
||||||
|
} catch (error) {
|
||||||
|
console.warn(error);
|
||||||
|
}
|
||||||
|
|
||||||
insertHtml(listen, image);
|
insertHtml(listen, image);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue