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
1 changed files with 2 additions and 0 deletions

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);