aboutsummaryrefslogtreecommitdiffstats
path: root/js/pagestats.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/pagestats.js')
-rw-r--r--js/pagestats.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/js/pagestats.js b/js/pagestats.js
index a6526e6..0a95396 100644
--- a/js/pagestats.js
+++ b/js/pagestats.js
@@ -206,6 +206,12 @@ PageStore.prototype = {
},
recordRequest: function(type, url, block) {
+ if ( block !== false ) {
+ this.perLoadBlockedRequestCount++;
+ } else {
+ this.perLoadAllowedRequestCount++;
+ }
+
// Store distinct network requests. This is used to:
// - remember which hostname/type were seen
// - count the number of distinct URLs for any given
@@ -230,13 +236,7 @@ PageStore.prototype = {
ηm.requestStats.record(type, block);
ηm.updateBadgeAsync(this.tabId);
- if ( block !== false ) {
- this.perLoadBlockedRequestCount++;
- } else {
- this.perLoadAllowedRequestCount++;
- }
-
- this.distinctRequestCount++;
+ // this.distinctRequestCount++;
this.mtxCountModifiedTime = Date.now();
if ( this.domains.has(hostname) === false ) {