Skip to content

Commit

Permalink
fix(UI): Fix show AdStatisticsButton when it's not necessary (shaka-p…
Browse files Browse the repository at this point in the history
  • Loading branch information
avelad authored Jan 30, 2025
1 parent 307e3d8 commit e7d428a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ui/ad_statistics_button.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ shaka.ui.AdStatisticsButton = class extends shaka.ui.Element {
/** @private {!shaka.extern.AdsStats} */
this.currentStats_ = this.adManager.getStats();

shaka.ui.Utils.setDisplay(this.button_, this.currentStats_.started > 0);

/** @private {!Map<string, HTMLElement>} */
this.displayedElements_ = new Map();

Expand Down

0 comments on commit e7d428a

Please sign in to comment.