From 6d6bfd14204d59e98e235945cedcb67addb6677b Mon Sep 17 00:00:00 2001 From: Alexander <1099589+alecsgone@users.noreply.github.com> Date: Fri, 7 Sep 2018 10:55:02 -0500 Subject: [PATCH] fix: use consistent id for tech, no matter how it is loaded (#5415) Change the constant used in the techId prop to the camelCased version, this will result on consistent id when loadTech_() is executed. Fixes #5411 --- src/js/player.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/player.js b/src/js/player.js index 2e8886131..17168f8f8 100644 --- a/src/js/player.js +++ b/src/js/player.js @@ -945,7 +945,7 @@ class Player extends Component { autoplay, 'nativeControlsForTouch': this.options_.nativeControlsForTouch, 'playerId': this.id(), - 'techId': `${this.id()}_${titleTechName}_api`, + 'techId': `${this.id()}_${camelTechName}_api`, 'playsinline': this.options_.playsinline, 'preload': this.options_.preload, 'loop': this.options_.loop,