cinera_player_pre.js: Fix scoping of "this"

This commit is contained in:
Matt Mascarenhas 2023-03-18 01:54:42 +00:00
parent a7694d4c3b
commit 9d5f0f9146
1 changed files with 1 additions and 1 deletions

View File

@ -1238,7 +1238,7 @@ Player.prototype.doFrame = function() {
this.platformPlayer.getCurrentTime()
.then(function(Result) {
Parent.currentTime = Result;
if(this.desiredTime == -1) { this.desiredTime = this.currentTime; }
if(Parent.desiredTime == -1) { Parent.desiredTime = Parent.currentTime; }
Parent.updateProgress();
});
} break;