Make unskip work with highlight segment

This commit is contained in:
Ajay Ramachandran
2021-08-17 20:47:40 -04:00
parent a13f5d2359
commit a3c80573fa
4 changed files with 42 additions and 12 deletions

View File

@@ -17,7 +17,7 @@ class SkipNotice {
skipNoticeRef: React.MutableRefObject<SkipNoticeComponent>;
constructor(segments: SponsorTime[], autoSkip = false, contentContainer: ContentContainer) {
constructor(segments: SponsorTime[], autoSkip = false, contentContainer: ContentContainer, unskipTime: number = null) {
this.skipNoticeRef = React.createRef();
this.segments = segments;
@@ -45,7 +45,8 @@ class SkipNotice {
contentContainer={contentContainer}
ref={this.skipNoticeRef}
closeListener={() => this.close()}
smaller={true} />,
smaller={true}
unskipTime={unskipTime} />,
this.noticeElement
);
}