cinera_player_pre.js: Fix scoping of "this"

This commit is contained in:
Matt Mascarenhas 2023-03-25 01:31:13 +00:00
parent df93674bf7
commit 52d6d989f8
1 changed files with 2 additions and 1 deletions

View File

@ -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: