Fixed feature to show the notice to users again.

This commit is contained in:
Ajay Ramachandran
2019-10-30 23:30:30 -04:00
parent 25b9edabf8
commit 4e4d50de82
4 changed files with 37 additions and 13 deletions

View File

@@ -618,10 +618,11 @@ function skipToTime(v, index, sponsorTimes, openNotice) {
if (dontShowNoticeOld) {
//show why this notice is showing
skipNotice.addNoticeInfoMessage(chrome.i18n.getMessage("noticeUpdate"));
skipNotice.addNoticeInfoMessage(chrome.i18n.getMessage("noticeUpdate"), chrome.i18n.getMessage("noticeUpdate2"));
//disable this setting
chrome.storage.sync.set({"dontShowNoticeAgain": false});
//remove this setting
chrome.storage.sync.remove(["dontShowNoticeAgain"]);
dontShowNoticeOld = false;
}
//auto-upvote this sponsor