]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/assets/player/peertube-videojs-plugin.ts
Responsive player
[github/Chocobozzz/PeerTube.git] / client / src / assets / player / peertube-videojs-plugin.ts
index add4e521e24fb25def4210f814e0c2ec75181264..4ba37b7d92ebe195105a33184f09d634dac9677a 100644 (file)
@@ -156,7 +156,7 @@ const WebTorrentButton = videojsUntyped.extend(Button, {
 
     div.className = 'vjs-webtorrent'
     // Hide the stats before we get the info
-    subDiv.style.display = 'none'
+    subDiv.className = 'vjs-webtorrent-hidden'
 
     this.player_.on('torrentInfo', (event, data) => {
       const downloadSpeed = bytes(data.downloadSpeed)
@@ -171,7 +171,7 @@ const WebTorrentButton = videojsUntyped.extend(Button, {
 
       peersNumber.textContent = numPeers
 
-      subDiv.style.display = 'block'
+      subDiv.className = 'vjs-webtorrent-displayed'
     })
 
     return div