mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-12 22:47:18 +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)
|
previewBar.set(previewBarSegments.filter((segment) => segment.actionType !== ActionType.Full), video?.duration)
|
||||||
updateActiveSegment(video.currentTime);
|
if (video) updateActiveSegment(video.currentTime);
|
||||||
|
|
||||||
if (Config.config.showTimeWithSkips) {
|
if (Config.config.showTimeWithSkips) {
|
||||||
const skippedDuration = utils.getTimestampsDuration(previewBarSegments
|
const skippedDuration = utils.getTimestampsDuration(previewBarSegments
|
||||||
|
|||||||
Reference in New Issue
Block a user