mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Fix for crash on first song in channel is from soundcloud, and uglifying css with gulp again
This commit is contained in:
@@ -294,7 +294,11 @@ var Player = {
|
|||||||
if(seekTo == undefined) seekTo = 0;
|
if(seekTo == undefined) seekTo = 0;
|
||||||
|
|
||||||
if(_autoplay) was_stopped = false;
|
if(_autoplay) was_stopped = false;
|
||||||
|
try {
|
||||||
Helper.css(document.getElementById("player_overlay"), "background", "url('" + full_playlist[full_playlist.length - 1].thumbnail + "')");
|
Helper.css(document.getElementById("player_overlay"), "background", "url('" + full_playlist[full_playlist.length - 1].thumbnail + "')");
|
||||||
|
} catch(e) {
|
||||||
|
console.log("Woops this seems to be the first song in the channel. This will be fixed.. soon.. we think..");
|
||||||
|
}
|
||||||
Helper.css(document.getElementById("player_overlay"), "background-size", "auto");
|
Helper.css(document.getElementById("player_overlay"), "background-size", "auto");
|
||||||
Helper.css(document.getElementById("player_overlay"), "background-position", "20%");
|
Helper.css(document.getElementById("player_overlay"), "background-position", "20%");
|
||||||
Helper.css(document.getElementById("player_overlay"), "background-color", "#2d2d2d");
|
Helper.css(document.getElementById("player_overlay"), "background-color", "#2d2d2d");
|
||||||
|
|||||||
Reference in New Issue
Block a user