Skip to content

Commit

Permalink
feat(option): Updates flag in localStorage to control banner visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
ERosendo committed Sep 11, 2024
1 parent b5b5a71 commit c9074ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ async function load_options() {
inputs[i].value = items.options[inputs[i].id] || '';
}
}
if ('option_dismiss_new_brand_info' in items.options) removeInfoBanner();
if ('option_dismiss_new_manifest_info' in items.options) removeInfoBanner();
});
}

Expand All @@ -38,7 +38,7 @@ function save_options() {

let banner = document.getElementById('header-banner');
if (!banner) {
options['option_dismiss_new_brand_info'] = true;
options['option_dismiss_new_manifest_info'] = true;
}

chrome.storage.local.set({ options: options }, function () {
Expand Down

0 comments on commit c9074ac

Please sign in to comment.