From 4d7018a0170b153d22ecc5238754d30d5c903ee2 Mon Sep 17 00:00:00 2001 From: Ajay Date: Sat, 6 May 2023 20:05:43 -0400 Subject: [PATCH] Fix safari check not running function Should make Firefox more precise --- src/content.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content.ts b/src/content.ts index 8a8f033c..7bb5847d 100644 --- a/src/content.ts +++ b/src/content.ts @@ -714,7 +714,7 @@ async function startSponsorSchedule(includeIntersectingSegments = false, current } else { logDebug(`Starting timeout to skip ${getVideo().currentTime} to skip at ${skipTime[0]}`); - const offset = (utils.isFirefox() && !isSafari ? 300 : 150); + const offset = (utils.isFirefox() && !isSafari() ? 300 : 150); // Schedule for right before to be more precise than normal timeout currentSkipSchedule = setTimeout(skippingFunction, Math.max(0, delayTime - offset)); }