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

@@ -136,9 +136,9 @@ function runThePopup() {
//if the don't show notice again letiable is true, an option to
// disable should be available
chrome.storage.sync.get(["dontShowNoticeAgain"], function(result) {
let dontShowNoticeAgain = result.dontShowNoticeAgain;
if (dontShowNoticeAgain != undefined && dontShowNoticeAgain) {
chrome.storage.sync.get(["dontShowNotice"], function(result) {
let dontShowNotice = result.dontShowNotice;
if (dontShowNotice != undefined && dontShowNotice) {
SB.showNoticeAgain.style.display = "unset";
}
});
@@ -828,7 +828,7 @@ function runThePopup() {
}
function showNoticeAgain() {
chrome.storage.sync.set({"dontShowNoticeAgain": false});
chrome.storage.sync.set({"dontShowNotice": false});
chrome.tabs.query({
active: true,