Fixed background bug on desktop

This commit is contained in:
kasperrt
2014-12-30 18:07:01 +01:00
parent d004e76f55
commit 40976fa779

View File

@@ -351,7 +351,7 @@ function onPlayerReady(event) {
}
function setBGimage(id){
if(window.mozInnerScreenX === null && !window.mobilecheck()){
if(window.mozInnerScreenX == null && !window.mobilecheck()){
$("#bgimage").css("background-image", "url(http://img.youtube.com/vi/"+id+"/0.jpg)");
}else if(window.mobilecheck()){
$("#mobile-banner").css("background-image", "url(http://img.youtube.com/vi/"+id+"/hqdefault.jpg)");