From af4f0fd211b6794547892bfa461a4e7e60e02307 Mon Sep 17 00:00:00 2001 From: calzoneman Date: Sat, 15 Nov 2014 16:52:18 -0600 Subject: [PATCH] Fix chat disappearing if the video player is gone --- www/js/util.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/www/js/util.js b/www/js/util.js index bad5acde..98c16ea1 100644 --- a/www/js/util.js +++ b/www/js/util.js @@ -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);