aboutsummaryrefslogtreecommitdiffstats
path: root/js/pagestats.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/pagestats.js')
-rw-r--r--js/pagestats.js22
1 files changed, 11 insertions, 11 deletions
diff --git a/js/pagestats.js b/js/pagestats.js
index 37e94c7..eb9a172 100644
--- a/js/pagestats.js
+++ b/js/pagestats.js
@@ -24,11 +24,11 @@
/******************************************************************************/
-µMatrix.pageStoreFactory = (function() {
+ηMatrix.pageStoreFactory = (function() {
/******************************************************************************/
-var µm = µMatrix;
+var ηm = ηMatrix;
/******************************************************************************/
@@ -99,7 +99,7 @@ var PageStore = function(tabContext) {
this.hostnameTypeCells = new Map();
this.domains = new Set();
this.blockedCollapsibles = new BlockedCollapsibles();
- this.requestStats = µm.requestStatsFactory();
+ this.requestStats = ηm.requestStatsFactory();
this.off = false;
this.init(tabContext);
};
@@ -164,11 +164,11 @@ PageStore.prototype = {
},
lookupBlockedCollapsibles: function(request, response) {
- var tabContext = µm.tabContextManager.lookup(this.tabId);
+ var tabContext = ηm.tabContextManager.lookup(this.tabId);
if ( tabContext === null ) { return; }
- var collapseBlacklisted = µm.userSettings.collapseBlacklisted,
- collapseBlocked = µm.userSettings.collapseBlocked,
+ var collapseBlacklisted = ηm.userSettings.collapseBlacklisted,
+ collapseBlocked = ηm.userSettings.collapseBlocked,
entry;
var blockedResources = response.blockedResources;
@@ -178,8 +178,8 @@ PageStore.prototype = {
request.toFilter.length !== 0
) {
var roothn = tabContext.rootHostname,
- hnFromURI = µm.URI.hostnameFromURI,
- tMatrix = µm.tMatrix;
+ hnFromURI = ηm.URI.hostnameFromURI,
+ tMatrix = ηm.tMatrix;
for ( entry of request.toFilter ) {
if ( tMatrix.mustBlock(roothn, hnFromURI(entry.url), entry.type) === false ) {
continue;
@@ -209,7 +209,7 @@ PageStore.prototype = {
// - remember which hostname/type were seen
// - count the number of distinct URLs for any given
// hostname-type pair
- var hostname = µm.URI.hostnameFromURI(url),
+ var hostname = ηm.URI.hostnameFromURI(url),
key = hostname + ' ' + type,
uids = this.hostnameTypeCells.get(key);
if ( uids === undefined ) {
@@ -226,8 +226,8 @@ PageStore.prototype = {
// https://github.com/gorhill/httpswitchboard/issues/306
// If it is recorded locally, record globally
- µm.requestStats.record(type, block);
- µm.updateBadgeAsync(this.tabId);
+ ηm.requestStats.record(type, block);
+ ηm.updateBadgeAsync(this.tabId);
if ( block !== false ) {
this.perLoadBlockedRequestCount++;