From 52d6d989f8a337c0dd896a1edb51267370ec146f Mon Sep 17 00:00:00 2001 From: Matt Mascarenhas Date: Sat, 25 Mar 2023 01:31:13 +0000 Subject: [PATCH] cinera_player_pre.js: Fix scoping of "this" --- cinera/cinera_player_pre.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cinera/cinera_player_pre.js b/cinera/cinera_player_pre.js index 1604797..964adfa 100644 --- a/cinera/cinera_player_pre.js +++ b/cinera/cinera_player_pre.js @@ -1554,10 +1554,11 @@ Player.prototype.updateLink = function() } break; case vod_platform.VIMEO: { + var Parent = this; this.platformPlayer.getCurrentTime() .then(function(Response) { - this.link.value = baseURL + "#" + Math.round(Response); + Parent.link.value = baseURL + "#" + Math.round(Response); }); } break; case vod_platform.YOUTUBE: