mirror of
https://github.com/radio95-rnt/RadioPlayer.git
synced 2026-07-29 15:29:14 +02:00
some updates
This commit is contained in:
+2
-3
@@ -281,9 +281,8 @@
|
||||
function handleMessage(msg){
|
||||
if(msg.event === "state"){
|
||||
const d = msg.data || {};
|
||||
applyProgressState(d.track);
|
||||
updateDirs(d.dirs);
|
||||
if(d.playlist) { playlist = d.playlist; renderPlaylist(); }
|
||||
if(d.track) applyProgressState(d.track);
|
||||
if(d.dirs) updateDirs(d.dirs);
|
||||
} else if(msg.event === "playlist"){
|
||||
playlist = msg.data || [];
|
||||
renderPlaylist();
|
||||
|
||||
Reference in New Issue
Block a user