Typo when catching play promise

pull/6527/head
Chocobozzz 2024-07-12 16:49:17 +02:00
parent a454d638c3
commit de2c0de32a
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 1 additions and 1 deletions

View File

@ -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)