diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-12-11 09:13:01 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-12-11 09:13:01 +0100 |
commit | a86309b4af9ad8391822f628d74fc5c7d1a01974 (patch) | |
tree | 74a9485767b8f740483587e206a1d753844ce47b /client/src/assets | |
parent | b9828abe54723ebffd2aabdad870b157518472b1 (diff) | |
download | PeerTube-a86309b4af9ad8391822f628d74fc5c7d1a01974.tar.gz PeerTube-a86309b4af9ad8391822f628d74fc5c7d1a01974.tar.zst PeerTube-a86309b4af9ad8391822f628d74fc5c7d1a01974.zip |
Responsive player
Diffstat (limited to 'client/src/assets')
-rw-r--r-- | client/src/assets/player/peertube-videojs-plugin.ts | 4 |
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 |