this fixes #60

This commit is contained in:
gorhill 2014-07-13 15:44:35 -04:00
parent 248ce5a346
commit 372639a167

View file

@ -52,13 +52,21 @@ var renderStats = function() {
return;
}
var isHTTP = /^https?:\/\/[a-z]/.test(stats.pageURL);
// Conditions for request log:
// - `http` or `https` scheme
// - logging of requests enabled
uDom('#gotoLog').toggleClass(
'enabled',
stats.netFilteringSwitch && (stats.logBlockedRequests || stats.logAllowedRequests)
isHTTP && (stats.logBlockedRequests || stats.logAllowedRequests)
);
// Conditions for element picker:
// - `http` or `https` scheme
uDom('#gotoPick').toggleClass(
'enabled',
stats.netFilteringSwitch
isHTTP
);
var blocked = stats.pageBlockedRequestCount;