Fix Issue preventing navigation on certain videos.

This commit is contained in:
PrestonN 2019-05-30 18:15:21 -04:00
parent 9a9bea9554
commit e7a5dda37e
1 changed files with 4 additions and 2 deletions

View File

@ -810,8 +810,10 @@ function hideViews() {
let videoIndex = subscriptionView.videoList.findIndex(x => x.id === playerView.videoId);
subscriptionView.videoList[videoIndex].watched = true;
subscriptionView.videoList[videoIndex].progressPercentage = (lengthSeconds / duration) * 100;
if (videoIndex !== -1) {
subscriptionView.videoList[videoIndex].watched = true;
subscriptionView.videoList[videoIndex].progressPercentage = (lengthSeconds / duration) * 100;
}
}
subscriptionView.seen = false;