mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-09 04:57:09 +03:00
Moved notice closing to renderer (no leftover nodes)
This commit is contained in:
@@ -11,6 +11,8 @@ export interface SubmissionNoticeProps {
|
||||
contentContainer: ContentContainer;
|
||||
|
||||
callback: () => any;
|
||||
|
||||
closeListener: () => void
|
||||
}
|
||||
|
||||
export interface SubmissionNoticeeState {
|
||||
@@ -134,6 +136,8 @@ class SubmissionNoticeComponent extends React.Component<SubmissionNoticeProps, S
|
||||
this.noticeRef.current.close(true);
|
||||
|
||||
this.contentContainer().resetSponsorSubmissionNotice();
|
||||
|
||||
this.props.closeListener();
|
||||
}
|
||||
|
||||
submit() {
|
||||
|
||||
Reference in New Issue
Block a user