Fix broken selector causing issues

This commit is contained in:
Calvin Montgomery 2013-06-20 22:51:50 -04:00
parent 7bb38ec8a5
commit 9038238936

View file

@ -34,7 +34,7 @@ var CHANNEL = {
var PLAYER = false; var PLAYER = false;
var FLUIDLAYOUT = false; var FLUIDLAYOUT = false;
if($("ytapiplayer").length > 0) { if($("#ytapiplayer").length > 0) {
var VWIDTH = $("#ytapiplayer").parent().css("width").replace("px", ""); var VWIDTH = $("#ytapiplayer").parent().css("width").replace("px", "");
var VHEIGHT = ""+parseInt(parseInt(VWIDTH) * 9 / 16); var VHEIGHT = ""+parseInt(parseInt(VWIDTH) * 9 / 16);
} }