mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-11 05:57:07 +03:00
Don't use video before it is set
This commit is contained in:
@@ -1287,7 +1287,7 @@ function updatePreviewBar(): void {
|
||||
});
|
||||
|
||||
previewBar.set(previewBarSegments.filter((segment) => segment.actionType !== ActionType.Full), video?.duration)
|
||||
updateActiveSegment(video.currentTime);
|
||||
if (video) updateActiveSegment(video.currentTime);
|
||||
|
||||
if (Config.config.showTimeWithSkips) {
|
||||
const skippedDuration = utils.getTimestampsDuration(previewBarSegments
|
||||
|
||||
Reference in New Issue
Block a user