Skip to content

Commit

Permalink
Added check for youtube destroy method in beforeDestroy to source file
Browse files Browse the repository at this point in the history
  • Loading branch information
EVIDENT\schuitema committed Aug 24, 2017
1 parent f4690fe commit e1601b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/player.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export default {
})
},
beforeDestroy () {
if (this.player !== null) {
if (this.player !== null && this.player.destroy) {
this.player.destroy()
}
delete this.player
Expand Down

0 comments on commit e1601b9

Please sign in to comment.