Fixed error with empty channel

This commit is contained in:
Kasper Rynning-Tønnesen
2015-06-27 02:48:37 +02:00
parent dd8dc93948
commit f23d40d629
2 changed files with 3 additions and 4 deletions

View File

@@ -8,9 +8,8 @@ var Youtube = {
document.getElementById('song-title').innerHTML = "Empty channel. Add some songs!";
$("#player_overlay").height($("#player").height());
if(!window.mobilecheck())
$("#player_overlay").toggleClass("hide");
ytplayer.stopVideo();
if(!window.mobilecheck()) $("#player_overlay").toggleClass("hide");
if(ytplayer !== undefined) ytplayer.stopVideo();
//List.importOldList(channel.toLowerCase());
}
else{