aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/render/SubmissionNotice.tsx
diff options
context:
space:
mode:
authorAjay <[email protected]>2024-02-01 13:31:19 -0500
committerAjay <[email protected]>2024-02-01 13:31:19 -0500
commite0fe0fad671364cfb94df3bde5a9a17b23b25003 (patch)
treefbb4a912d5e82081e3df1035932983810cd774af /src/render/SubmissionNotice.tsx
parentc0bc068a18e0423f69a987c5bcf37bd5b42f1ad7 (diff)
downloadSponsorBlock-e0fe0fad671364cfb94df3bde5a9a17b23b25003.tar.gz
SponsorBlock-e0fe0fad671364cfb94df3bde5a9a17b23b25003.zip
Don't close submission menu if submission didn't go through
Fxies submission menu closing for warning about previewing a segment
Diffstat (limited to 'src/render/SubmissionNotice.tsx')
-rw-r--r--src/render/SubmissionNotice.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/render/SubmissionNotice.tsx b/src/render/SubmissionNotice.tsx
index 5e9fbfbd..c0159cc0 100644
--- a/src/render/SubmissionNotice.tsx
+++ b/src/render/SubmissionNotice.tsx
@@ -11,7 +11,7 @@ class SubmissionNotice {
// Contains functions and variables from the content script needed by the skip notice
contentContainer: () => unknown;
- callback: () => unknown;
+ callback: () => Promise<boolean>;
noticeRef: React.MutableRefObject<SubmissionNoticeComponent>;
@@ -19,7 +19,7 @@ class SubmissionNotice {
root: Root;
- constructor(contentContainer: ContentContainer, callback: () => unknown) {
+ constructor(contentContainer: ContentContainer, callback: () => Promise<boolean>) {
this.noticeRef = React.createRef();
this.contentContainer = contentContainer;