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; } break;
case vod_platform.VIMEO: case vod_platform.VIMEO:
{ {
var Parent = this;
this.platformPlayer.getCurrentTime() this.platformPlayer.getCurrentTime()
.then(function(Response) .then(function(Response)
{ {
this.link.value = baseURL + "#" + Math.round(Response); Parent.link.value = baseURL + "#" + Math.round(Response);
}); });
} break; } break;
case vod_platform.YOUTUBE: case vod_platform.YOUTUBE: