Skip to content

Commit a58bec2

Browse files
committed
Fix chapter text sometimes being hidden
1 parent 2c01946 commit a58bec2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/js-components/previewBar.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -950,7 +950,7 @@ class PreviewBar {
950950
chapterButton.disabled = false;
951951
}
952952

953-
const chapterTitle = chaptersContainer.querySelector(".ytp-chapter-title-content") as HTMLDivElement;
953+
const chapterTitle = chaptersContainer.querySelector(".ytp-chapter-title-content:not(.sponsorChapterText)") as HTMLDivElement;
954954
chapterTitle.style.display = "none";
955955

956956
const chapterCustomText = (chapterTitle.parentElement.querySelector(".sponsorChapterText") || (() => {

0 commit comments

Comments
 (0)