mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-09 13:07:05 +03:00
dontShowNoticeAgain
This commit is contained in:
14
content.js
14
content.js
@@ -73,19 +73,7 @@ var popupInitialised = false;
|
|||||||
//if the notice should not be shown
|
//if the notice should not be shown
|
||||||
//happens when the user click's the "Don't show notice again" button
|
//happens when the user click's the "Don't show notice again" button
|
||||||
//option renamed when new notice was made
|
//option renamed when new notice was made
|
||||||
var dontShowNotice = false;
|
dontShowNoticeAgain = SB.config.dontShowNoticeAgain;
|
||||||
|
|
||||||
dontShowNoticeAgain2 = SB.config.dontShowNoticeAgain;
|
|
||||||
|
|
||||||
if (dontShowNoticeAgain2 != undefined) {
|
|
||||||
dontShowNotice = dontShowNoticeAgain2;
|
|
||||||
}
|
|
||||||
|
|
||||||
//load the legacy option to hide the notice
|
|
||||||
var dontShowNoticeOld = false;
|
|
||||||
if (dontShowNoticeAgain2 != undefined) {
|
|
||||||
dontShowNoticeOld = dontShowNoticeAgain2;
|
|
||||||
}
|
|
||||||
|
|
||||||
//get messages from the background script and the popup
|
//get messages from the background script and the popup
|
||||||
chrome.runtime.onMessage.addListener(messageListener);
|
chrome.runtime.onMessage.addListener(messageListener);
|
||||||
|
|||||||
Reference in New Issue
Block a user