1
Fork 0

Continue without cover art if it can't be found.

This commit is contained in:
Bauke 2022-03-30 18:40:07 +02:00
parent cd88730d1c
commit b4c1daeea9
Signed by: Bauke
GPG Key ID: C1C0F29952BCF558
1 changed files with 7 additions and 1 deletions

View File

@ -5,7 +5,13 @@ window.addEventListener('DOMContentLoaded', async () => {
return;
}
const image = await getCoverArt(listen);
let image;
try {
image = await getCoverArt(listen);
} catch (error) {
console.warn(error);
}
insertHtml(listen, image);
};