aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAjay <[email protected]>2022-03-17 22:19:21 -0400
committerAjay <[email protected]>2022-03-17 22:19:21 -0400
commite30bccd2b7d6f0fa19170c5fa9621b5579a9c97a (patch)
tree9c3b204e70bf42c645d0889198f318df2c3a0fd0
parent36f0fccd9c49dc8ac1d1c41806a568e910fc77f2 (diff)
downloadSponsorBlock-e30bccd2b7d6f0fa19170c5fa9621b5579a9c97a.tar.gz
SponsorBlock-e30bccd2b7d6f0fa19170c5fa9621b5579a9c97a.zip
Don't use virtual time on firefox
-rw-r--r--src/content.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/content.ts b/src/content.ts
index e133abe7..250d6c4d 100644
--- a/src/content.ts
+++ b/src/content.ts
@@ -458,7 +458,7 @@ function startSponsorSchedule(includeIntersectingSegments = false, currentTime?:
if (currentTime === undefined || currentTime === null) {
const virtualTime = lastKnownVideoTime.videoTime ?
(performance.now() - lastKnownVideoTime.preciseTime) / 1000 + lastKnownVideoTime.videoTime : null;
- if (!isSafari() && virtualTime && Math.abs(virtualTime - video.currentTime) < 0.6){
+ if (!utils.isFirefox() && !isSafari() && virtualTime && Math.abs(virtualTime - video.currentTime) < 0.6){
currentTime = virtualTime;
} else {
currentTime = video.currentTime;