Fix chat disappearing if the video player is gone

This commit is contained in:
calzoneman 2014-11-15 16:52:18 -06:00
parent 43cc336e07
commit af4f0fd211

View file

@ -1652,6 +1652,8 @@ function handleWindowResize() {
}
function handleVideoResize() {
if ($("#ytapiplayer").length === 0) return;
var intv, ticks = 0;
var resize = function () {
if (++ticks > 10) clearInterval(intv);