unhide chapter bar in fallback case

This commit is contained in:
Ajay
2022-09-16 20:46:27 -04:00
parent 54a2d97f70
commit e5d9b16235

View File

@@ -308,6 +308,7 @@ class PreviewBar {
createChaptersBar(segments: PreviewBarSegment[]): void {
if (!this.progressBar || !this.originalChapterBar || this.originalChapterBar.childElementCount <= 0) {
if (this.customChaptersBar) this.customChaptersBar.style.display = "none";
if (this.originalChapterBar) this.originalChapterBar.style.removeProperty("display");
return;
}