aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/content.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/content.ts')
-rw-r--r--src/content.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/content.ts b/src/content.ts
index 91cb4f37..f4156d83 100644
--- a/src/content.ts
+++ b/src/content.ts
@@ -992,11 +992,11 @@ function getStartTimes(sponsorTimes: SponsorTime[], includeIntersectingSegments:
*
* @param time
*/
-function previewTime(time: number) {
+function previewTime(time: number, unpause = true) {
video.currentTime = time;
// Unpause the video if needed
- if (video.paused){
+ if (unpause && video.paused){
video.play();
}
}