Skip to content
Snippets Groups Projects
Verified Commit c836e8fb authored by Thomas Rientjes's avatar Thomas Rientjes
Browse files

Fix #253 by correcting initialization logic

parent 778e2e53
No related branches found
No related tags found
No related merge requests found
......@@ -192,7 +192,12 @@ chrome.tabs.query({}, function (tabs) {
});
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;
});
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment