Skip to content

Commit

Permalink
fix: update ad immunity countdown check
Browse files Browse the repository at this point in the history
  • Loading branch information
martinstark committed Mar 21, 2024
1 parent fbbb6ca commit 9d75e71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ts/InternalBitmovinYospacePlayer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 9d75e71

Please sign in to comment.