diff options
Diffstat (limited to 'src/components/SkipNoticeComponent.tsx')
-rw-r--r-- | src/components/SkipNoticeComponent.tsx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/components/SkipNoticeComponent.tsx b/src/components/SkipNoticeComponent.tsx index 6b3246d3..2216fbc5 100644 --- a/src/components/SkipNoticeComponent.tsx +++ b/src/components/SkipNoticeComponent.tsx @@ -18,6 +18,7 @@ export interface SkipNoticeProps { segments: SponsorTime[]; autoSkip: boolean; + startReskip?: boolean; // Contains functions and variables from the content script needed by the skip notice contentContainer: ContentContainer; @@ -120,8 +121,10 @@ class SkipNoticeComponent extends React.Component<SkipNoticeProps, SkipNoticeSta countdownTime: Config.config.skipNoticeDuration, countdownText: null, - skipButtonText: this.getUnskipText(), - skipButtonCallback: (index) => this.unskip(index), + skipButtonText: this.props.startReskip + ? this.getReskipText() : this.getUnskipText(), + skipButtonCallback: this.props.startReskip + ? (index) => this.reskip(index) : (index) => this.unskip(index), showSkipButton: true, editing: false, |