aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/components/SkipNoticeComponent.tsx
diff options
context:
space:
mode:
authorAjay <[email protected]>2022-04-21 21:28:25 -0400
committerAjay <[email protected]>2022-04-21 21:28:25 -0400
commitc773b4ecd103925eb56bd5b42931e29469367682 (patch)
tree49d6f8a8582136b9a4d04a66b6731ce9e757f1a8 /src/components/SkipNoticeComponent.tsx
parent9bad5ed324d2fe7718821c53664eacfc37940d8b (diff)
downloadSponsorBlock-c773b4ecd103925eb56bd5b42931e29469367682.tar.gz
SponsorBlock-c773b4ecd103925eb56bd5b42931e29469367682.zip
Enter unskip with skip notice hidden
Diffstat (limited to 'src/components/SkipNoticeComponent.tsx')
-rw-r--r--src/components/SkipNoticeComponent.tsx7
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,