diff --git a/src/js-components/previewBar.ts b/src/js-components/previewBar.ts index 05428e54..1f1098ce 100644 --- a/src/js-components/previewBar.ts +++ b/src/js-components/previewBar.ts @@ -214,6 +214,9 @@ class PreviewBar { while (this.container.firstChild) { this.container.removeChild(this.container.firstChild); } + + if (this.customChaptersBar) this.customChaptersBar.style.display = "none"; + this.originalChapterBar?.style?.removeProperty("display"); } set(segments: PreviewBarSegment[], videoDuration: number): void {