File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -217,6 +217,7 @@ class PreviewBar {
217217
218218 if ( this . customChaptersBar ) this . customChaptersBar . style . display = "none" ;
219219 this . originalChapterBar ?. style ?. removeProperty ( "display" ) ;
220+ this . chapterVote ?. setVisibility ( false ) ;
220221 }
221222
222223 set ( segments : PreviewBarSegment [ ] , videoDuration : number ) : void {
@@ -770,8 +771,8 @@ class PreviewBar {
770771 const chapterTitle = chaptersContainer . querySelector ( ".ytp-chapter-title-content" ) as HTMLDivElement ;
771772 chapterTitle . innerText = chosenSegment . description || shortCategoryName ( chosenSegment . category ) ;
772773
773- const chapterVoteContainer = this . chapterVote . getContainer ( ) ;
774774 if ( chosenSegment . source === SponsorSourceType . Server ) {
775+ const chapterVoteContainer = this . chapterVote . getContainer ( ) ;
775776 if ( ! chapterButton . contains ( chapterVoteContainer ) ) {
776777 const oldVoteContainers = document . querySelectorAll ( "#chapterVote" ) ;
777778 if ( oldVoteContainers . length > 0 ) {
You can’t perform that action at this time.
0 commit comments