diff options
Diffstat (limited to 'src/render/SkipNotice.tsx')
-rw-r--r-- | src/render/SkipNotice.tsx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/render/SkipNotice.tsx b/src/render/SkipNotice.tsx index a5c83fd9..c58cef4c 100644 --- a/src/render/SkipNotice.tsx +++ b/src/render/SkipNotice.tsx @@ -20,7 +20,7 @@ class SkipNotice { skipNoticeRef: React.MutableRefObject<SkipNoticeComponent>; root: Root; - constructor(segments: SponsorTime[], autoSkip = false, contentContainer: ContentContainer, unskipTime: number = null, startReskip = false) { + constructor(segments: SponsorTime[], autoSkip = false, contentContainer: ContentContainer, componentDidMount: () => void, unskipTime: number = null, startReskip = false, upcomingNoticeShown: boolean) { this.skipNoticeRef = React.createRef(); this.segments = segments; @@ -53,7 +53,9 @@ class SkipNotice { closeListener={() => this.close()} smaller={Config.config.noticeVisibilityMode >= NoticeVisbilityMode.MiniForAll || (Config.config.noticeVisibilityMode >= NoticeVisbilityMode.MiniForAutoSkip && autoSkip)} - unskipTime={unskipTime} /> + fadeIn={!upcomingNoticeShown} + unskipTime={unskipTime} + componentDidMount={componentDidMount} /> ); } |