mirror of
https://github.com/KevinMidboe/zoff.git
synced 2026-09-18 05:52:19 +00:00
Voting now only affects online players
This commit is contained in:
Vendored
+2
-2
File diff suppressed because one or more lines are too long
Vendored
+1
-1
File diff suppressed because one or more lines are too long
+6
-4
@@ -28,10 +28,12 @@ var List = {
|
|||||||
List.deleted_song(msg.value);
|
List.deleted_song(msg.value);
|
||||||
break;
|
break;
|
||||||
case "vote":
|
case "vote":
|
||||||
List.voted_song(msg.value, msg.time);
|
if(!offline){
|
||||||
if(chromecastAvailable){
|
List.voted_song(msg.value, msg.time);
|
||||||
Player.sendNext({title: full_playlist[0].title, videoId: full_playlist[0].id});
|
if(chromecastAvailable){
|
||||||
}
|
Player.sendNext({title: full_playlist[0].title, videoId: full_playlist[0].id});
|
||||||
|
}
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case "song_change":
|
case "song_change":
|
||||||
if(window.location.pathname != "/") List.song_change(msg.time);
|
if(window.location.pathname != "/") List.song_change(msg.time);
|
||||||
|
|||||||
Reference in New Issue
Block a user