diff --git a/source/js/listenbrainz.js b/source/js/listenbrainz.js index 5b47cff..2ba066f 100644 --- a/source/js/listenbrainz.js +++ b/source/js/listenbrainz.js @@ -1,6 +1,10 @@ window.addEventListener('DOMContentLoaded', async () => { const loop = async () => { const listen = await getCurrentListen(); + if (listen === undefined) { + return; + } + const image = await getCoverArt(listen); insertHtml(listen, image); };