Typo when catching play promise
This commit is contained in:
parent
a454d638c3
commit
de2c0de32a
|
@ -46,7 +46,7 @@ export class PeerTubeEmbedApi {
|
||||||
|
|
||||||
channel.bind('play', (txn, params) => {
|
channel.bind('play', (txn, params) => {
|
||||||
const p = this.player.play()
|
const p = this.player.play()
|
||||||
if (p) return
|
if (!p) return
|
||||||
|
|
||||||
p.catch((err: Error) => {
|
p.catch((err: Error) => {
|
||||||
console.error('Cannot play the video', err)
|
console.error('Cannot play the video', err)
|
||||||
|
|
Loading…
Reference in New Issue