mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-12 06:27:14 +03:00
Submission notice size now updates when the video size changes.
React listeners are properly cleaned up now.
This commit is contained in:
@@ -52,6 +52,8 @@ class SkipNotice {
|
||||
}
|
||||
|
||||
close() {
|
||||
ReactDOM.unmountComponentAtNode(this.noticeElement);
|
||||
|
||||
this.noticeElement.remove();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -56,6 +56,8 @@ class SubmissionNotice {
|
||||
}
|
||||
|
||||
close() {
|
||||
ReactDOM.unmountComponentAtNode(this.noticeElement);
|
||||
|
||||
this.noticeElement.remove();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user