mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2024-11-10 09:07:45 +01:00
Fixed looping sometimes not skipping beginning sponsors.
Resolves https://github.com/ajayyy/SponsorBlock/issues/306
This commit is contained in:
parent
78dd44c502
commit
b21a59f4e5
1 changed files with 1 additions and 2 deletions
|
@ -533,11 +533,10 @@ function sponsorsLookup(id: string, channelIDPromise?) {
|
||||||
startSponsorSchedule();
|
startSponsorSchedule();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
video.addEventListener('seeked', () => {
|
video.addEventListener('seeking', () => {
|
||||||
if (!video.paused) startSponsorSchedule();
|
if (!video.paused) startSponsorSchedule();
|
||||||
});
|
});
|
||||||
video.addEventListener('ratechange', () => startSponsorSchedule());
|
video.addEventListener('ratechange', () => startSponsorSchedule());
|
||||||
video.addEventListener('seeking', cancelSponsorSchedule);
|
|
||||||
video.addEventListener('pause', cancelSponsorSchedule);
|
video.addEventListener('pause', cancelSponsorSchedule);
|
||||||
|
|
||||||
startSponsorSchedule();
|
startSponsorSchedule();
|
||||||
|
|
Loading…
Reference in a new issue