From b21a59f4e5c8b074ea24391c2a65afd297c220ed Mon Sep 17 00:00:00 2001 From: Ajay Ramachandran Date: Mon, 30 Mar 2020 15:33:03 -0400 Subject: [PATCH] Fixed looping sometimes not skipping beginning sponsors. Resolves https://github.com/ajayyy/SponsorBlock/issues/306 --- src/content.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/content.ts b/src/content.ts index 410b1989..84699a53 100644 --- a/src/content.ts +++ b/src/content.ts @@ -533,11 +533,10 @@ function sponsorsLookup(id: string, channelIDPromise?) { startSponsorSchedule(); } }); - video.addEventListener('seeked', () => { + video.addEventListener('seeking', () => { if (!video.paused) startSponsorSchedule(); }); video.addEventListener('ratechange', () => startSponsorSchedule()); - video.addEventListener('seeking', cancelSponsorSchedule); video.addEventListener('pause', cancelSponsorSchedule); startSponsorSchedule();