mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-10 21:47:06 +03:00
Fix safari check not running function
Should make Firefox more precise
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user