From de2c0de32abf396d49264bf8756ca521c665acfd Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 12 Jul 2024 16:49:17 +0200 Subject: [PATCH] Typo when catching play promise --- client/src/standalone/videos/embed-api.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/standalone/videos/embed-api.ts b/client/src/standalone/videos/embed-api.ts index 9392765b4..c855de86b 100644 --- a/client/src/standalone/videos/embed-api.ts +++ b/client/src/standalone/videos/embed-api.ts @@ -46,7 +46,7 @@ export class PeerTubeEmbedApi { channel.bind('play', (txn, params) => { const p = this.player.play() - if (p) return + if (!p) return p.catch((err: Error) => { console.error('Cannot play the video', err)