Use the synced show-badge preference on startup
This commit is contained in:
parent
c815263671
commit
764cd1b6de
|
@ -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
|
// 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("disableAll", {checked: prefs.get("disableAll")});
|
||||||
|
chrome.contextMenus.update("show-badge", {checked: prefs.get("show-badge")});
|
||||||
});
|
});
|
||||||
|
|
||||||
chrome.storage.onChanged.addListener(function(changes, area) {
|
chrome.storage.onChanged.addListener(function(changes, area) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user