fixes syncing issue of 'turn all styles off' in the right click context menu with the panel item

This commit is contained in:
Jeremy Schomery 2017-02-23 10:39:35 +03:30
parent 6738095f24
commit fadf1a070c

View File

@ -53,6 +53,7 @@ chrome.tabs.onRemoved.addListener(function(tabId, info) {
});
chrome.runtime.onMessage.addListener(function(request, sender, sendResponse) {
switch (request.method) {
case "getStyles":
var styles = getStyles(request, sendResponse);
@ -84,6 +85,9 @@ chrome.runtime.onMessage.addListener(function(request, sender, sendResponse) {
if (request.prefName == "show-badge") {
chrome.contextMenus.update("show-badge", {checked: request.value});
}
else if (request.prefName === 'disableAll') {
chrome.contextMenus.update("disableAll", {checked: request.value});
}
break;
}
});