Fix cascaded ternary condition

This commit is contained in:
tophf 2017-03-19 02:00:03 +03:00
parent 764cd1b6de
commit 66a1c17847

View File

@ -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