diff options
author | Ajay <[email protected]> | 2023-05-06 20:05:43 -0400 |
---|---|---|
committer | Ajay <[email protected]> | 2023-05-06 20:05:43 -0400 |
commit | 4d7018a0170b153d22ecc5238754d30d5c903ee2 (patch) | |
tree | 3668b990dc5c6d6b05a0663997a3f0bded1b87bb | |
parent | ca24e82a6d42f15e414c773297a91cc3416e8465 (diff) | |
download | SponsorBlock-4d7018a0170b153d22ecc5238754d30d5c903ee2.tar.gz SponsorBlock-4d7018a0170b153d22ecc5238754d30d5c903ee2.zip |
Fix safari check not running function
Should make Firefox more precise
-rw-r--r-- | src/content.ts | 2 |
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)); } |