Use the synced show-badge preference on startup

This commit is contained in:
tophf 2017-03-19 01:57:19 +03:00
parent c815263671
commit 764cd1b6de

View File

@ -419,6 +419,7 @@ var prefs = chrome.extension.getBackgroundPage().prefs || new function Prefs() {
}
// make sure right click context menu is in the right state when prefs are loaded
chrome.contextMenus.update("disableAll", {checked: prefs.get("disableAll")});
chrome.contextMenus.update("show-badge", {checked: prefs.get("show-badge")});
});
chrome.storage.onChanged.addListener(function(changes, area) {