aboutsummaryrefslogtreecommitdiffstats
path: root/js/tab.js
diff options
context:
space:
mode:
authorAlessio Vanni <vannilla@firemail.cc>2019-03-02 15:53:13 +0100
committerAlessio Vanni <vannilla@firemail.cc>2019-03-02 15:53:13 +0100
commitd60b478b8eadf539a2657074cbd86d02221b707b (patch)
treebad786adfb1b708a942960fb8308e872c9ec77ae /js/tab.js
parent760510a7b976917911cd47c3ec25b56a790b86de (diff)
downloadematrix-d60b478b8eadf539a2657074cbd86d02221b707b.tar.lz
ematrix-d60b478b8eadf539a2657074cbd86d02221b707b.tar.xz
ematrix-d60b478b8eadf539a2657074cbd86d02221b707b.zip
Change from distinct requests to blocked requests
Ported from uMatrix. I agree that the number of blocked requests is more useful than the number of distinct requests.
Diffstat (limited to 'js/tab.js')
-rw-r--r--js/tab.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/tab.js b/js/tab.js
index 5629806..09bbef8 100644
--- a/js/tab.js
+++ b/js/tab.js
@@ -584,8 +584,8 @@ vAPI.tabs.registerListeners();
var greenSize = squareSize * Math.sqrt(pageStore.perLoadAllowedRequestCount / total);
iconId = greenSize < squareSize/2 ? Math.ceil(greenSize) : Math.floor(greenSize);
}
- if ( this.userSettings.iconBadgeEnabled && pageStore.distinctRequestCount !== 0) {
- badgeStr = this.formatCount(pageStore.distinctRequestCount);
+ if ( this.userSettings.iconBadgeEnabled && pageStore.perLoadBlockedRequestCount !== 0) {
+ badgeStr = this.formatCount(pageStore.perLoadBlockedRequestCount);
}
}