diff --git a/package.json b/package.json index 5e881c19..be0a8817 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "coryd.dev", - "version": "6.4.2", + "version": "6.4.3", "description": "The source for my personal site. Built using 11ty and hosted on Netlify.", "type": "module", "scripts": { diff --git a/src/assets/scripts/components/now-playing.js b/src/assets/scripts/components/now-playing.js index 0f47e57f..523deb28 100644 --- a/src/assets/scripts/components/now-playing.js +++ b/src/assets/scripts/components/now-playing.js @@ -67,20 +67,11 @@ class NowPlaying extends HTMLElement { } get template() { - return document - .getElementById(nowPlayingTemplate.id) - .content.cloneNode(true); + return document.getElementById(nowPlayingTemplate.id).content.cloneNode(true); } get data() { - const data = fetch('/api/now-playing', { - type: 'json', - }) - .then((data) => data.json()) - .catch(() => { - loading.style.display = 'none' - }) - return data; + return fetch('/api/now-playing', { type: 'json' }).then((data) => data.json()).catch((e) => {}) } }