From db0159c7f20633f9b472b77f5798849fdbdbe4b8 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 14 May 2021 14:07:16 +0200 Subject: Fix "stats for nerds" card in HTTP mode --- client/src/assets/player/stats/stats-card.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'client/src') diff --git a/client/src/assets/player/stats/stats-card.ts b/client/src/assets/player/stats/stats-card.ts index d9f0d2fe9..a93f59506 100644 --- a/client/src/assets/player/stats/stats-card.ts +++ b/client/src/assets/player/stats/stats-card.ts @@ -89,9 +89,9 @@ class StatsCard extends Component { this.container.style.display = 'block' this.updateInterval = setInterval(async () => { try { - const options = this.mode === 'webtorrent' - ? await this.buildWebTorrentOptions() - : await this.buildHLSOptions() + const options = this.mode === 'p2p-media-loader' + ? await this.buildHLSOptions() + : await this.buildWebTorrentOptions() // Default this.list.innerHTML = this.getListTemplate(options) } catch (err) { @@ -212,7 +212,7 @@ class StatsCard extends Component { : undefined 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)} -- cgit v1.2.3