Add parens around ternary condition

This commit is contained in:
Timothy Su 2018-09-18 15:24:21 -04:00
parent f6f8b799ad
commit 330748aa93

View File

@ -228,7 +228,7 @@ chrome.webRequest.onCompleted.addListener(function(details) {
}
chrome.cookies.getAll({domain: domainVar}, function(cookies) {
for (var i=0; i<cookies.length; i++) {
chrome.cookies.remove({url: cookies[i].secure ? "https://" : "http://" + cookies[i].domain + cookies[i].path, name: cookies[i].name});
chrome.cookies.remove({url: (cookies[i].secure ? "https://" : "http://") + cookies[i].domain + cookies[i].path, name: cookies[i].name});
}
});
}