diff options
Diffstat (limited to 'client/src/assets/player/stats')
-rw-r--r-- | client/src/assets/player/stats/stats-card.ts | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/client/src/assets/player/stats/stats-card.ts b/client/src/assets/player/stats/stats-card.ts index b271d0526..a32f6fb97 100644 --- a/client/src/assets/player/stats/stats-card.ts +++ b/client/src/assets/player/stats/stats-card.ts | |||
@@ -39,10 +39,6 @@ class StatsCard extends Component { | |||
39 | intervalMs = 300 | 39 | intervalMs = 300 |
40 | playerNetworkInfo: PlayerNetworkInfo = {} | 40 | playerNetworkInfo: PlayerNetworkInfo = {} |
41 | 41 | ||
42 | constructor (player: videojs.Player, options: StatsCardOptions) { | ||
43 | super(player, options) | ||
44 | } | ||
45 | |||
46 | createEl () { | 42 | createEl () { |
47 | const container = super.createEl('div', { | 43 | const container = super.createEl('div', { |
48 | className: 'vjs-stats-content', | 44 | className: 'vjs-stats-content', |
@@ -81,9 +77,8 @@ class StatsCard extends Component { | |||
81 | } | 77 | } |
82 | 78 | ||
83 | toggle () { | 79 | toggle () { |
84 | this.updateInterval | 80 | if (this.updateInterval) this.hide() |
85 | ? this.hide() | 81 | else this.show() |
86 | : this.show() | ||
87 | } | 82 | } |
88 | 83 | ||
89 | show () { | 84 | show () { |