From 6f682baa4547e13ce9c79cfebb64455c600e0a7e Mon Sep 17 00:00:00 2001 From: Official Noob <31563761+OfficialNoob@users.noreply.github.com> Date: Wed, 1 Jan 2020 14:30:23 +0000 Subject: [PATCH] Update content.js --- content.js | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/content.js b/content.js index 71fee845..888040ba 100644 --- a/content.js +++ b/content.js @@ -65,10 +65,6 @@ var sponsorTimesSubmitting = []; //this is used to close the popup on YouTube when the other popup opens var popupInitialised = false; -if (SB.config.dontShowNotice) { - SB.config.dontShowNoticeOld = true; -} - //get messages from the background script and the popup chrome.runtime.onMessage.addListener(messageListener); @@ -77,7 +73,6 @@ function messageListener(request, sender, sendResponse) { switch(request.message){ case "update": videoIDChange(getYouTubeVideoID(document.URL)); - break; case "sponsorStart": sponsorMessageStarted(sendResponse); @@ -549,11 +544,10 @@ function skipToTime(v, index, sponsorTimes, openNotice) { if (!SB.config.dontShowNotice) { let skipNotice = new SkipNotice(this, currentUUID, SB.config.disableAutoSkip); - if (dontShowNoticeOld) { + if (!SB.config.dontShowNoticeOld) { //show why this notice is showing skipNotice.addNoticeInfoMessage(chrome.i18n.getMessage("noticeUpdate"), chrome.i18n.getMessage("noticeUpdate2")); - - SB.config.dontShowNotice = false; + SB.config.dontShowNoticeOld = true; } //auto-upvote this sponsor