Verified Commit c836e8fb authored by Thomas Rientjes's avatar Thomas Rientjes
Browse files

Fix #253 by correcting initialization logic

parent 778e2e53
...@@ -192,7 +192,12 @@ chrome.tabs.query({}, function (tabs) { ...@@ -192,7 +192,12 @@ chrome.tabs.query({}, function (tabs) {
}); });
chrome.storage.local.get(Setting.SHOW_ICON_BADGE, function (items) { chrome.storage.local.get(Setting.SHOW_ICON_BADGE, function (items) {
stateManager.showIconBadge = items.showIconBadge || true;
if (items.showIconBadge === undefined) {
items.showIconBadge = true;
}
stateManager.showIconBadge = items.showIconBadge;
}); });
/** /**
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment