mirror of
https://github.com/shaka-project/shaka-player.git
synced 2026-06-13 15:46:46 +03:00
fix(UI): Fix visibility of the ad statistics panel (#10203)
This commit is contained in:
committed by
GitHub
parent
147d82b40c
commit
a92699fe4d
@@ -179,7 +179,7 @@ shaka.ui.AdStatisticsButton = class extends shaka.ui.Element {
|
||||
this.currentStats_.skipped > 0 ||
|
||||
this.currentStats_.errors > 0;
|
||||
shaka.ui.Utils.setDisplay(this.button_, !this.isSubMenuOpened && hasStats);
|
||||
if (hasStats && !this.container_.classList.contains('shaka-hidden')) {
|
||||
if (!hasStats && !this.container_.classList.contains('shaka-hidden')) {
|
||||
this.onClick_();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user