Template
1
0
Fork 0

How did this get through????

This commit is contained in:
Atridad Lahiji 2024-05-14 22:50:25 -06:00
parent cd3a539243
commit 6f4fc38d7c
No known key found for this signature in database
2 changed files with 2 additions and 1 deletions

View file

@ -79,7 +79,7 @@ func CurrentlyPlayingTrackSSE(ctx context.Context, pubSub pubsub.PubSub) error {
return SendSSE(ctx, pubSub, "spotify", `<div class="indicator-item badge badge-success"><a _='on mouseover put "🔥 Listening to `+songName+" by "+artistName+` 🔥" into my.textContent on mouseout put "🔥" into my.textContent' href="`+playing.Item.ExternalURLs["spotify"]+`" rel="noreferrer" target="_blank">🔥</a></div>`)
} else {
SendSSE(ctx, pubSub, "spotify", "")
SendSSE(ctx, pubSub, "spotify", "<span></span>")
}
return nil

View file

@ -131,3 +131,4 @@ func HandleIncomingMessages(c echo.Context, pubsub pubsub.PubSubMessage, client
}
mutex.Unlock()
}
}