From 66a1c178472dd291104aec9b3dc5a522cd1c27ed Mon Sep 17 00:00:00 2001 From: tophf Date: Sun, 19 Mar 2017 02:00:03 +0300 Subject: [PATCH] Fix cascaded ternary condition --- messaging.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/messaging.js b/messaging.js index 7dfe54b3..379eace0 100644 --- a/messaging.js +++ b/messaging.js @@ -77,7 +77,7 @@ function updateIcon(tab, styles) { function stylesReceived(styles) { var disableAll = "disableAll" in styles ? styles.disableAll : prefs.get("disableAll"); - var postfix = disableAll ? "x" : "" || styles.length == 0 ? "w" : ""; + var postfix = disableAll ? "x" : styles.length == 0 ? "w" : ""; chrome.browserAction.setIcon({ path: { // Material Design 2016 new size is 16px