mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2024-11-10 09:07:45 +01:00
Don't hide chevron if segments are null
This commit is contained in:
parent
9301a0914d
commit
254261b83a
1 changed files with 1 additions and 1 deletions
|
@ -314,7 +314,7 @@ class PreviewBar {
|
||||||
if (chapterChevron) {
|
if (chapterChevron) {
|
||||||
if (this.segments.some((segment) => segment.source === SponsorSourceType.YouTube)) {
|
if (this.segments.some((segment) => segment.source === SponsorSourceType.YouTube)) {
|
||||||
chapterChevron.style.removeProperty("display");
|
chapterChevron.style.removeProperty("display");
|
||||||
} else {
|
} else if (this.segments) {
|
||||||
chapterChevron.style.display = "none";
|
chapterChevron.style.display = "none";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue