Fix for crash on first song in channel is from soundcloud, and uglifying css with gulp again

This commit is contained in:
Kasper Rynning-Tønnesen
2018-05-04 22:32:53 +02:00
parent 25349ff6de
commit 588abcea2a

View File

@@ -294,7 +294,11 @@ var Player = {
if(seekTo == undefined) seekTo = 0;
if(_autoplay) was_stopped = false;
try {
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-position", "20%");
Helper.css(document.getElementById("player_overlay"), "background-color", "#2d2d2d");