mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-12-08 20:48:48 +00:00
Fixed issue with added a playlist to a recently cleared channel
This commit is contained in:
@@ -153,6 +153,13 @@ var Player = {
|
||||
}
|
||||
duration = Player.player.getDuration();
|
||||
}
|
||||
|
||||
if(Object.keys(obj).length == 0) {
|
||||
paused = false;
|
||||
empty_clear = true;
|
||||
} else {
|
||||
empty_clear = false;
|
||||
}
|
||||
},
|
||||
|
||||
onPlayerStateChange: function(newState) {
|
||||
@@ -208,7 +215,9 @@ var Player = {
|
||||
$("#playpause").css("pointer-events", "all");
|
||||
$("#channel-load").css("display", "none");
|
||||
}
|
||||
paused = true;
|
||||
if(!empty_clear) {
|
||||
paused = true;
|
||||
}
|
||||
if(window.location.pathname != "/") Playercontrols.play_pause_show();
|
||||
mobile_beginning = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user