mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2024-11-10 01:01:55 +01:00
Only seek if the video is not paused
This commit is contained in:
parent
af9a6b8a84
commit
0241e15691
1 changed files with 3 additions and 1 deletions
|
@ -493,8 +493,10 @@ function sponsorsLookup(id: string, channelIDPromise?) {
|
|||
if (!seekListenerSetUp && !Config.config.disableSkipping) {
|
||||
seekListenerSetUp = true;
|
||||
|
||||
video.addEventListener('seeked', () => startSponsorSchedule());
|
||||
video.addEventListener('play', () => startSponsorSchedule());
|
||||
video.addEventListener('seeked', () => {
|
||||
if (!video.paused) startSponsorSchedule()
|
||||
});
|
||||
video.addEventListener('ratechange', () => startSponsorSchedule());
|
||||
video.addEventListener('seeking', cancelSponsorSchedule);
|
||||
video.addEventListener('pause', cancelSponsorSchedule);
|
||||
|
|
Loading…
Reference in a new issue