diff options
author | Ajay Ramachandran <[email protected]> | 2020-09-16 13:54:02 -0400 |
---|---|---|
committer | GitHub <[email protected]> | 2020-09-16 13:54:02 -0400 |
commit | 2f9ad953100af10ef486c0d7132f90731d9800fe (patch) | |
tree | 25540a1fa020050d992a494e254eb6320b8b6603 /src/content.ts | |
parent | b4e1cb0cfdf9f6544d0598b728d1ff6870ea2994 (diff) | |
parent | 70a86e5a11320a96862989857c199f5f14a8a37b (diff) | |
download | SponsorBlock-2f9ad953100af10ef486c0d7132f90731d9800fe.tar.gz SponsorBlock-2f9ad953100af10ef486c0d7132f90731d9800fe.zip |
Merge pull request #476 from ajayyy/expiremental
Improvements
Diffstat (limited to 'src/content.ts')
-rw-r--r-- | src/content.ts | 4 |
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(); } } |