1
0

For update button replaced getElementById with getElementsByName.

This commit is contained in:
Alexander Andreev 2023-08-22 03:40:09 +04:00
parent 472a68768c
commit 865bdd7eca
Signed by: Arav
GPG Key ID: D22A817D95815393

View File

@ -36,7 +36,7 @@ function updateLastPlayedSong() {
}); });
} }
document.getElementById("btn-update").addEventListener("click", () => { document.getElementsByName("update")[0].addEventListener("click", () => {
updateLastPlayedSong(); updateLastPlayedSong();
updateRadioStatus(); updateRadioStatus();
}) })