From a184999562c0332fd57318e175aebb9afbafd766 Mon Sep 17 00:00:00 2001 From: randresfbc <108079795+randresfbc@users.noreply.github.com> Date: Tue, 19 Jul 2022 11:15:33 -0500 Subject: [PATCH] fix: Fix an issue where the updatePlayer method would throw when using iframe embeds (#96) --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 2daf8b2..516f556 100644 --- a/src/index.js +++ b/src/index.js @@ -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; }