Fixed pausing and restarting the video not skipping

This commit is contained in:
Ajay Ramachandran
2020-08-06 22:21:09 -04:00
parent 87c9489c0e
commit 283342afb3

View File

@@ -589,11 +589,11 @@ function sponsorsLookup(id: string) {
}
});
video.addEventListener('seeking', () => {
if (!video.paused){
// Reset lastCheckVideoTime
lastCheckTime = Date.now();
lastCheckVideoTime = video.currentTime;
if (!video.paused){
startSponsorSchedule();
}
});