From f45eb74c0f05dfac727725c026cfea5b73ccd79f Mon Sep 17 00:00:00 2001
From: Cory Dransfeldt <coryd@hey.com>
Date: Tue, 20 Feb 2024 13:28:39 -0800
Subject: [PATCH] chore: minor cleanup

---
 package.json                                 |  2 +-
 src/assets/scripts/components/now-playing.js | 13 ++-----------
 2 files changed, 3 insertions(+), 12 deletions(-)

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) => {})
   }
 }