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)
peersNumber.textContent = numPeers
- subDiv.style.display = 'block'
+ subDiv.className = 'vjs-webtorrent-displayed'
})
return div