mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-10 05:27:03 +03:00
Add class for other extensions when displaying non chapter title
This commit is contained in:
@@ -776,6 +776,11 @@ class PreviewBar {
|
||||
|
||||
const chapterTitle = chaptersContainer.querySelector(".ytp-chapter-title-content") as HTMLDivElement;
|
||||
chapterTitle.innerText = chosenSegment.description || shortCategoryName(chosenSegment.category);
|
||||
if (chosenSegment.actionType !== ActionType.Chapter) {
|
||||
chapterTitle.classList.add("sponsorBlock-segment-title");
|
||||
} else {
|
||||
chapterTitle.classList.remove("sponsorBlock-segment-title");
|
||||
}
|
||||
|
||||
if (chosenSegment.source === SponsorSourceType.Server) {
|
||||
const chapterVoteContainer = this.chapterVote.getContainer();
|
||||
|
||||
Reference in New Issue
Block a user