aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/content.ts
diff options
context:
space:
mode:
authorAjay Ramachandran <[email protected]>2020-09-16 13:54:02 -0400
committerGitHub <[email protected]>2020-09-16 13:54:02 -0400
commit2f9ad953100af10ef486c0d7132f90731d9800fe (patch)
tree25540a1fa020050d992a494e254eb6320b8b6603 /src/content.ts
parentb4e1cb0cfdf9f6544d0598b728d1ff6870ea2994 (diff)
parent70a86e5a11320a96862989857c199f5f14a8a37b (diff)
downloadSponsorBlock-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.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();
}
}