Skip to content

Commit

Permalink
Round end time when skipping on firefox if close
Browse files Browse the repository at this point in the history
Fix #1883
  • Loading branch information
ajayyy committed Oct 18, 2023
1 parent 88cfa02 commit c8c141f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/content.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1660,6 +1660,9 @@ function skipToTime({v, skipTime, skippingSegments, openNotice, forceAutoSkip, u
// MacOS will loop otherwise #1027
// Sometimes playlists loop too #1804
v.currentTime = v.duration - 0.001;
} else if (v.duration > 1 && Math.abs(skipTime[1] - v.duration) < 0.5
&& isFirefoxOrSafari() && !isSafari()) {
v.currentTime = v.duration;
} else {
if (inMuteSegment(skipTime[1], true)) {
// Make sure not to mute if skipping into a mute segment
Expand Down

0 comments on commit c8c141f

Please sign in to comment.