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