Version 0.9.0f - Ajout du Home Menu V2

This commit is contained in:
Raphix
2023-09-11 22:39:33 +02:00
parent 84ca1ae59b
commit a7b40b0086
2 changed files with 14 additions and 2 deletions

View File

@ -263,9 +263,10 @@ socket.on("ALWAYS/ALL_RADIO", (resp) => {
for(var title of resp ) {
var playBtn = document.getElementById(resp.indexOf(title) +'_radio_pplay')
const playBtn = document.getElementById(resp.indexOf(title) +'_radio_pplay')
playBtn.addEventListener("click", () => {
send("ADD_SONG_NOW", resp[playBtn.id.replace("_radio_pplay", "")])
})