diff options
author | Ajay Ramachandran <[email protected]> | 2020-04-14 00:47:09 -0400 |
---|---|---|
committer | Ajay Ramachandran <[email protected]> | 2020-04-14 00:47:09 -0400 |
commit | 1b2bc6def43e60e84cd46ded93bfbd8539ae1d4d (patch) | |
tree | d612b82c87583ec4789f6e19ff5cb37ab0c3aba8 /src/render/SkipNotice.tsx | |
parent | 18c7be8161afaac9fc21ffff352993d26e7d66a3 (diff) | |
download | SponsorBlock-1b2bc6def43e60e84cd46ded93bfbd8539ae1d4d.tar.gz SponsorBlock-1b2bc6def43e60e84cd46ded93bfbd8539ae1d4d.zip |
Submission notice size now updates when the video size changes.
React listeners are properly cleaned up now.
Diffstat (limited to 'src/render/SkipNotice.tsx')
-rw-r--r-- | src/render/SkipNotice.tsx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/render/SkipNotice.tsx b/src/render/SkipNotice.tsx index 281260ed..49265fb8 100644 --- a/src/render/SkipNotice.tsx +++ b/src/render/SkipNotice.tsx @@ -52,6 +52,8 @@ class SkipNotice { } close() { + ReactDOM.unmountComponentAtNode(this.noticeElement); + this.noticeElement.remove(); } } |