Skip to content

Commit

Permalink
fix(UI): Fix show AdStatisticsButton when it's not necessary (#7989)
Browse files Browse the repository at this point in the history
  • Loading branch information
avelad committed Feb 5, 2025
1 parent f6235ba commit 0cf1c3c
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 0cf1c3c

Please sign in to comment.