Don't hide chevron if segments are null

This commit is contained in:
Ajay 2023-01-21 17:37:12 -05:00
parent 9301a0914d
commit 254261b83a

View file

@ -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";
}
}