Commit 272eb084 authored by anton's avatar anton

Prevent exception when CellMedia becomes visible but player.pause is unavailable

parent 41caf147
Pipeline #59793 passed with stage
in 6 minutes and 40 seconds
......@@ -42,13 +42,8 @@
},
watch: {
visible (val) {
if (!val && this.player) {
try {
this.player.pause()
}
catch (err) {
console.error('Player pause failed', err)
}
if (!val && this.player && typeof this.player.pause === 'function') {
this.player.pause()
}
}
},
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment