Fix chat disappearing if the video player is gone
This commit is contained in:
parent
43cc336e07
commit
af4f0fd211
|
@ -1652,6 +1652,8 @@ function handleWindowResize() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function handleVideoResize() {
|
function handleVideoResize() {
|
||||||
|
if ($("#ytapiplayer").length === 0) return;
|
||||||
|
|
||||||
var intv, ticks = 0;
|
var intv, ticks = 0;
|
||||||
var resize = function () {
|
var resize = function () {
|
||||||
if (++ticks > 10) clearInterval(intv);
|
if (++ticks > 10) clearInterval(intv);
|
||||||
|
|
Loading…
Reference in a new issue