mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-10 21:47:06 +03:00
Don't unpause for inspect
This commit is contained in:
@@ -962,11 +962,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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user