chore: if we land in the catch, hide the spinner
This commit is contained in:
parent
07f3421bf5
commit
46d7bf28a4
1 changed files with 3 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Reference in a new issue