From 0241e15691de06820697b187d772b700c88bd82c Mon Sep 17 00:00:00 2001 From: Ajay Ramachandran Date: Fri, 28 Feb 2020 15:06:08 -0500 Subject: [PATCH] Only seek if the video is not paused --- src/content.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/content.ts b/src/content.ts index 65a31f6b..be4456d8 100644 --- a/src/content.ts +++ b/src/content.ts @@ -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);