From 283342afb30f9250cfd75f8d74bdcd55a687c646 Mon Sep 17 00:00:00 2001 From: Ajay Ramachandran Date: Thu, 6 Aug 2020 22:21:09 -0400 Subject: [PATCH] Fixed pausing and restarting the video not skipping --- src/content.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/content.ts b/src/content.ts index 9bdb86a1..2186a9ae 100644 --- a/src/content.ts +++ b/src/content.ts @@ -589,11 +589,11 @@ function sponsorsLookup(id: string) { } }); video.addEventListener('seeking', () => { - // Reset lastCheckVideoTime - lastCheckTime = Date.now(); - lastCheckVideoTime = video.currentTime; - if (!video.paused){ + // Reset lastCheckVideoTime + lastCheckTime = Date.now(); + lastCheckVideoTime = video.currentTime; + startSponsorSchedule(); } });