mirror of https://github.com/Chocobozzz/PeerTube
Fix "stats for nerds" card in HTTP mode
parent
bc529ef7f0
commit
db0159c7f2
|
@ -89,9 +89,9 @@ class StatsCard extends Component {
|
||||||
this.container.style.display = 'block'
|
this.container.style.display = 'block'
|
||||||
this.updateInterval = setInterval(async () => {
|
this.updateInterval = setInterval(async () => {
|
||||||
try {
|
try {
|
||||||
const options = this.mode === 'webtorrent'
|
const options = this.mode === 'p2p-media-loader'
|
||||||
? await this.buildWebTorrentOptions()
|
? await this.buildHLSOptions()
|
||||||
: await this.buildHLSOptions()
|
: await this.buildWebTorrentOptions() // Default
|
||||||
|
|
||||||
this.list.innerHTML = this.getListTemplate(options)
|
this.list.innerHTML = this.getListTemplate(options)
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
@ -212,7 +212,7 @@ class StatsCard extends Component {
|
||||||
: undefined
|
: undefined
|
||||||
|
|
||||||
return `
|
return `
|
||||||
${this.buildElement(player.localize('Player mode'), this.options_.mode)}
|
${this.buildElement(player.localize('Player mode'), this.mode || 'HTTP')}
|
||||||
|
|
||||||
${this.buildElement(player.localize('Video UUID'), this.options_.videoUUID)}
|
${this.buildElement(player.localize('Video UUID'), this.options_.videoUUID)}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue