mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2024-11-10 09:07:45 +01:00
Fix safari check not running function
Should make Firefox more precise
This commit is contained in:
parent
ca24e82a6d
commit
4d7018a017
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue