From ff0dc6e5706ffae19502b192061189c6e0c2199f Mon Sep 17 00:00:00 2001 From: Ajay Ramachandran Date: Sun, 17 Jan 2021 13:10:33 -0500 Subject: Never move old skip notice Partially resolves https://github.com/ajayyy/SponsorBlock/issues/505 --- src/components/NoticeComponent.tsx | 4 +++- src/components/SkipNoticeComponent.tsx | 7 ------- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/src/components/NoticeComponent.tsx b/src/components/NoticeComponent.tsx index 9fff3be4..d699c204 100644 --- a/src/components/NoticeComponent.tsx +++ b/src/components/NoticeComponent.tsx @@ -71,7 +71,9 @@ class NoticeComponent extends React.Component { return ( 0 ? " secondSkipNotice" : "")} style={noticeStyle} onMouseEnter={() => this.timerMouseEnter()} onMouseLeave={() => this.timerMouseLeave()}> diff --git a/src/components/SkipNoticeComponent.tsx b/src/components/SkipNoticeComponent.tsx index aa75a587..069472b2 100644 --- a/src/components/SkipNoticeComponent.tsx +++ b/src/components/SkipNoticeComponent.tsx @@ -91,13 +91,6 @@ class SkipNoticeComponent extends React.Component 0) { - //another notice exists - - const previousNotice = document.getElementsByClassName("sponsorSkipNotice")[0]; - previousNotice.classList.add("secondSkipNotice") - } - // Setup state this.state = { noticeTitle, -- cgit v1.2.3