aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/assets/player
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/assets/player')
-rw-r--r--client/src/assets/player/peertube-videojs-plugin.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/client/src/assets/player/peertube-videojs-plugin.ts b/client/src/assets/player/peertube-videojs-plugin.ts
index add4e521e..4ba37b7d9 100644
--- a/client/src/assets/player/peertube-videojs-plugin.ts
+++ b/client/src/assets/player/peertube-videojs-plugin.ts
@@ -156,7 +156,7 @@ const WebTorrentButton = videojsUntyped.extend(Button, {
156 156
157 div.className = 'vjs-webtorrent' 157 div.className = 'vjs-webtorrent'
158 // Hide the stats before we get the info 158 // Hide the stats before we get the info
159 subDiv.style.display = 'none' 159 subDiv.className = 'vjs-webtorrent-hidden'
160 160
161 this.player_.on('torrentInfo', (event, data) => { 161 this.player_.on('torrentInfo', (event, data) => {
162 const downloadSpeed = bytes(data.downloadSpeed) 162 const downloadSpeed = bytes(data.downloadSpeed)
@@ -171,7 +171,7 @@ const WebTorrentButton = videojsUntyped.extend(Button, {
171 171
172 peersNumber.textContent = numPeers 172 peersNumber.textContent = numPeers
173 173
174 subDiv.style.display = 'block' 174 subDiv.className = 'vjs-webtorrent-displayed'
175 }) 175 })
176 176
177 return div 177 return div