Run chapters clear when preview bar cleared

This commit is contained in:
Ajay
2022-10-05 02:19:32 -04:00
parent c4701092f4
commit 8cc3843ada

View File

@@ -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 {