diff --git a/src/js-components/previewBar.ts b/src/js-components/previewBar.ts index 9016a4df..2d105c2c 100644 --- a/src/js-components/previewBar.ts +++ b/src/js-components/previewBar.ts @@ -314,7 +314,7 @@ class PreviewBar { if (chapterChevron) { if (this.segments.some((segment) => segment.source === SponsorSourceType.YouTube)) { chapterChevron.style.removeProperty("display"); - } else { + } else if (this.segments) { chapterChevron.style.display = "none"; } }