From 9d75e710bccaac281cb0c908db0057b74e36f9ae Mon Sep 17 00:00:00 2001 From: Martin <901824+martinstark@users.noreply.github.com> Date: Thu, 21 Mar 2024 15:05:27 +0100 Subject: [PATCH] fix: update ad immunity countdown check --- src/ts/InternalBitmovinYospacePlayer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ts/InternalBitmovinYospacePlayer.ts b/src/ts/InternalBitmovinYospacePlayer.ts index 36b9cfd7..daf867f6 100644 --- a/src/ts/InternalBitmovinYospacePlayer.ts +++ b/src/ts/InternalBitmovinYospacePlayer.ts @@ -600,7 +600,7 @@ export class InternalBitmovinYospacePlayer implements BitmovinYospacePlayerAPI { // Helper private endAdImmunityPeriod() { - if (typeof this.adImmunityCountDown === 'number') { + if (this.adImmunityCountDown !== null) { window.clearTimeout(this.adImmunityCountDown); this.adImmunityCountDown = null; }