mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-10 17:17:57 +01:00
this fixes #60
This commit is contained in:
parent
248ce5a346
commit
372639a167
1 changed files with 10 additions and 2 deletions
12
js/popup.js
12
js/popup.js
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue