chore: if we land in the catch, hide the spinner

This commit is contained in:
Cory Dransfeldt 2023-09-05 09:06:30 -07:00
parent 07f3421bf5
commit 46d7bf28a4
No known key found for this signature in database

View file

@ -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 {