aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/content.ts
diff options
context:
space:
mode:
authorAjay <[email protected]>2023-05-06 20:05:43 -0400
committerAjay <[email protected]>2023-05-06 20:05:43 -0400
commit4d7018a0170b153d22ecc5238754d30d5c903ee2 (patch)
tree3668b990dc5c6d6b05a0663997a3f0bded1b87bb /src/content.ts
parentca24e82a6d42f15e414c773297a91cc3416e8465 (diff)
downloadSponsorBlock-4d7018a0170b153d22ecc5238754d30d5c903ee2.tar.gz
SponsorBlock-4d7018a0170b153d22ecc5238754d30d5c903ee2.zip
Fix safari check not running function
Should make Firefox more precise
Diffstat (limited to 'src/content.ts')
-rw-r--r--src/content.ts2
1 files changed, 1 insertions, 1 deletions
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));
}