mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-09 04:57:09 +03:00
Remove possible error in notice
This commit is contained in:
@@ -274,8 +274,8 @@ class NoticeComponent extends React.Component<NoticeProps, NoticeState> {
|
|||||||
if (countdownTime == 3) {
|
if (countdownTime == 3) {
|
||||||
//start fade out animation
|
//start fade out animation
|
||||||
const notice = document.getElementById("sponsorSkipNotice" + this.idSuffix);
|
const notice = document.getElementById("sponsorSkipNotice" + this.idSuffix);
|
||||||
notice.style.removeProperty("animation");
|
notice?.style.removeProperty("animation");
|
||||||
notice.classList.add("sponsorSkipNoticeFadeOut");
|
notice?.classList.add("sponsorSkipNoticeFadeOut");
|
||||||
}
|
}
|
||||||
|
|
||||||
this.setState({
|
this.setState({
|
||||||
|
|||||||
Reference in New Issue
Block a user