aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/render/SkipNotice.tsx
diff options
context:
space:
mode:
authorAjay Ramachandran <[email protected]>2020-06-07 11:16:24 -0400
committerAjay Ramachandran <[email protected]>2020-06-07 11:16:24 -0400
commit9f4fec2a43b14fc1c4e9842e57f130b9dd5c4632 (patch)
tree9897bbfd7d9b767ab6b31f80cb47beaa09602647 /src/render/SkipNotice.tsx
parent89cc6ed18496f580207a99283486a572fe98a5d4 (diff)
downloadSponsorBlock-9f4fec2a43b14fc1c4e9842e57f130b9dd5c4632.tar.gz
SponsorBlock-9f4fec2a43b14fc1c4e9842e57f130b9dd5c4632.zip
Added category update info on the notice
Diffstat (limited to 'src/render/SkipNotice.tsx')
-rw-r--r--src/render/SkipNotice.tsx3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/render/SkipNotice.tsx b/src/render/SkipNotice.tsx
index 4b969098..81f4c026 100644
--- a/src/render/SkipNotice.tsx
+++ b/src/render/SkipNotice.tsx
@@ -12,6 +12,8 @@ class SkipNotice {
noticeElement: HTMLDivElement;
+ skipNoticeRef: React.MutableRefObject<SkipNoticeComponent>;
+
constructor(segments: SponsorTime[], autoSkip: boolean = false, contentContainer) {
this.segments = segments;
this.autoSkip = autoSkip;
@@ -51,6 +53,7 @@ class SkipNotice {
<SkipNoticeComponent segments={segments}
autoSkip={autoSkip}
contentContainer={contentContainer}
+ ref={this.skipNoticeRef}
closeListener={() => this.close()} />,
this.noticeElement
);