aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/assets/player/stats
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-08-17 14:42:53 +0200
committerChocobozzz <me@florianbigard.com>2021-08-18 08:35:06 +0200
commit9df52d660feb722404be00a50f3c8a612bec1c15 (patch)
treedde52880fa012874d24c60f64eb596b0a789cc8b /client/src/assets/player/stats
parentadb8809d43648ea0a64d6845bb39aa3bd0e005a6 (diff)
downloadPeerTube-9df52d660feb722404be00a50f3c8a612bec1c15.tar.gz
PeerTube-9df52d660feb722404be00a50f3c8a612bec1c15.tar.zst
PeerTube-9df52d660feb722404be00a50f3c8a612bec1c15.zip
Migrate client to eslint
Diffstat (limited to 'client/src/assets/player/stats')
-rw-r--r--client/src/assets/player/stats/stats-card.ts9
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 () {