aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--client/src/standalone/videos/embed.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/client/src/standalone/videos/embed.ts b/client/src/standalone/videos/embed.ts
index c91ae08b9..5213443fc 100644
--- a/client/src/standalone/videos/embed.ts
+++ b/client/src/standalone/videos/embed.ts
@@ -262,6 +262,9 @@ export class PeerTubeEmbed {
262 262
263 private async buildDock (videoInfo: VideoDetails, configResponse: Response) { 263 private async buildDock (videoInfo: VideoDetails, configResponse: Response) {
264 if (this.controls) { 264 if (this.controls) {
265 // On webtorrent fallback, player may have been disposed
266 if (!this.player.player_) return
267
265 const title = this.title ? videoInfo.name : undefined 268 const title = this.title ? videoInfo.name : undefined
266 269
267 const config: ServerConfig = await configResponse.json() 270 const config: ServerConfig = await configResponse.json()