Skip to content

Commit

Permalink
fix: Fix an issue where the updatePlayer method would throw when usin…
Browse files Browse the repository at this point in the history
…g iframe embeds (#96)
  • Loading branch information
randresfbc authored Jul 19, 2022
1 parent 744389f commit a184999
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ class ReactPlayerLoader extends React.Component {
updatePlayer(changes) {

// No player exists, player is disposed, or not using the catalog
if (!this.player || !this.player.el()) {
if (!this.player || !this.player.el || !this.player.el()) {
return;
}

Expand Down

0 comments on commit a184999

Please sign in to comment.