diff options
author | Ajay <[email protected]> | 2022-10-27 21:39:06 -0400 |
---|---|---|
committer | Ajay <[email protected]> | 2022-10-27 21:39:06 -0400 |
commit | fea8a9a37edc67fb770e3533adcbf50155025db3 (patch) | |
tree | ec423cf27feec0cfc190841202615db8ead2a853 /src | |
parent | aec5845bced2443dea0bf36affd1aa64df18f36e (diff) | |
download | SponsorBlock-fea8a9a37edc67fb770e3533adcbf50155025db3.tar.gz SponsorBlock-fea8a9a37edc67fb770e3533adcbf50155025db3.zip |
Disable virtual time in firefox again
Diffstat (limited to 'src')
-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 e9324ece..d9eb9a8c 100644 --- a/src/content.ts +++ b/src/content.ts @@ -717,7 +717,7 @@ function getVirtualTime(): number { const virtualTime = lastTimeFromWaitingEvent ?? (lastKnownVideoTime.videoTime ? (performance.now() - lastKnownVideoTime.preciseTime) * video.playbackRate / 1000 + lastKnownVideoTime.videoTime : null); - if (Config.config.useVirtualTime && !isSafari() && virtualTime + if (Config.config.useVirtualTime && !utils.isFirefox() && !isSafari() && virtualTime && Math.abs(virtualTime - video.currentTime) < 0.6 && video.currentTime !== 0) { return virtualTime; } else { |