Skip to content

Commit a184999

Browse files
authored
fix: Fix an issue where the updatePlayer method would throw when using iframe embeds (#96)
1 parent 744389f commit a184999

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ class ReactPlayerLoader extends React.Component {
237237
updatePlayer(changes) {
238238

239239
// No player exists, player is disposed, or not using the catalog
240-
if (!this.player || !this.player.el()) {
240+
if (!this.player || !this.player.el || !this.player.el()) {
241241
return;
242242
}
243243

0 commit comments

Comments
 (0)