Skip to content

Commit

Permalink
fix(Ads): Fix ad position by default (#7659)
Browse files Browse the repository at this point in the history
Regression of
70257ff
  • Loading branch information
avelad authored Nov 25, 2024
1 parent 70257ff commit ef2c7eb
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions lib/ads/interstitial_ad_manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -255,10 +255,10 @@ shaka.ads.InterstitialAdManager = class {
this.lastPlayedAd_ = null;
if (!this.usingBaseVideo_) {
this.video_.loop = false;
this.video_.style.height = '';
this.video_.style.left = '';
this.video_.style.top = '';
this.video_.style.width = '';
this.video_.style.height = '100%';
this.video_.style.left = '0';
this.video_.style.top = '0';
this.video_.style.width = '100%';
}
}

Expand Down Expand Up @@ -573,10 +573,10 @@ shaka.ads.InterstitialAdManager = class {
this.baseVideo_.currentTime += interstitial.resumeOffset;
}
this.video_.loop = false;
this.video_.style.height = '';
this.video_.style.left = '';
this.video_.style.top = '';
this.video_.style.width = '';
this.video_.style.height = '100%';
this.video_.style.left = '0';
this.video_.style.top = '0';
this.video_.style.width = '100%';
}
}

Expand Down

0 comments on commit ef2c7eb

Please sign in to comment.