mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-10 21:47:06 +03:00
Fixed pausing and restarting the video not skipping
This commit is contained in:
@@ -589,11 +589,11 @@ function sponsorsLookup(id: string) {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
video.addEventListener('seeking', () => {
|
video.addEventListener('seeking', () => {
|
||||||
// Reset lastCheckVideoTime
|
|
||||||
lastCheckTime = Date.now();
|
|
||||||
lastCheckVideoTime = video.currentTime;
|
|
||||||
|
|
||||||
if (!video.paused){
|
if (!video.paused){
|
||||||
|
// Reset lastCheckVideoTime
|
||||||
|
lastCheckTime = Date.now();
|
||||||
|
lastCheckVideoTime = video.currentTime;
|
||||||
|
|
||||||
startSponsorSchedule();
|
startSponsorSchedule();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user