mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-11 22:17:21 +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 {
|
} else {
|
||||||
logDebug(`Starting timeout to skip ${getVideo().currentTime} to skip at ${skipTime[0]}`);
|
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
|
// Schedule for right before to be more precise than normal timeout
|
||||||
currentSkipSchedule = setTimeout(skippingFunction, Math.max(0, delayTime - offset));
|
currentSkipSchedule = setTimeout(skippingFunction, Math.max(0, delayTime - offset));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user