From 46d7bf28a48ae6741e162209a4a3fd529ed96904 Mon Sep 17 00:00:00 2001 From: Cory Dransfeldt Date: Tue, 5 Sep 2023 09:06:30 -0700 Subject: [PATCH] chore: if we land in the catch, hide the spinner --- src/assets/scripts/script.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/assets/scripts/script.js b/src/assets/scripts/script.js index 84a91196..9b647c2c 100644 --- a/src/assets/scripts/script.js +++ b/src/assets/scripts/script.js @@ -21,7 +21,9 @@ const res = await fetch('/api/now-playing', { type: 'json', - }).catch() + }).catch(() => { + loading.style.display = 'none' + }) const data = await res.json() try {