Fix gray-out bug

This commit is contained in:
Lawrence Hook
2022-09-13 20:18:21 -04:00
parent 7458dd34b1
commit ba73b45024
+1
View File
@@ -14,6 +14,7 @@ browser.runtime.onInstalled.addListener(object => {
// Change the browserAction icon if the extension is disabled
browser.storage.onChanged.addListener((changes, area) => {
const changedItems = Object.keys(changes);
for (const item of changedItems) {
if (item === 'global_enable') {
if (changes[item].newValue === false) {