From fadf1a070cb91f58d0c1937e453a279561b0c351 Mon Sep 17 00:00:00 2001 From: Jeremy Schomery Date: Thu, 23 Feb 2017 10:39:35 +0330 Subject: [PATCH] fixes syncing issue of 'turn all styles off' in the right click context menu with the panel item --- background.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/background.js b/background.js index 18865544..efea89bb 100644 --- a/background.js +++ b/background.js @@ -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; } });