diff --git a/static/js/spotifyWidget.js b/static/js/spotifyWidget.js index 628a7ea..a794f32 100644 --- a/static/js/spotifyWidget.js +++ b/static/js/spotifyWidget.js @@ -2,9 +2,14 @@ async function getState() { const data = await fetch("https://api.thatalex.dev/v0/web/spotify/player/state", { method: "GET" }).then(response => response.json()) - .catch(function(response) { - console.log(`Uh oh, a little fucky wucky owo occurred\n\n${response}`) - document.getElementById("songContent").innerHTML = `
Uh oh! There was an error fetching song content.
The API may be temporarily down.
Uh oh! There was an error fetching song content.
The API may be temporarily down.
${data.data.songData.songName} by ${data.data.songData.artists[0].name} at ${data.data.device.volume}% volume.`