aboutsummaryrefslogtreecommitdiffstats
path: root/js/pagestats.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/pagestats.js')
-rw-r--r--js/pagestats.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/js/pagestats.js b/js/pagestats.js
index d5c2cdd..3490071 100644
--- a/js/pagestats.js
+++ b/js/pagestats.js
@@ -27,6 +27,8 @@
ηMatrix.pageStoreFactory = (function() {
+ Cu.import('chrome://ematrix/content/lib/UriTools.jsm');
+
/******************************************************************************/
var ηm = ηMatrix;
@@ -179,7 +181,7 @@
request.toFilter.length !== 0
) {
var roothn = tabContext.rootHostname,
- hnFromURI = ηm.URI.hostnameFromURI,
+ hnFromURI = UriTools.hostnameFromURI,
tMatrix = ηm.tMatrix;
for ( entry of request.toFilter ) {
if ( tMatrix.mustBlock(roothn, hnFromURI(entry.url), entry.type) === false ) {
@@ -216,7 +218,7 @@
// - 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 = UriTools.hostnameFromURI(url),
key = hostname + ' ' + type,
uids = this.hostnameTypeCells.get(key);
if ( uids === undefined ) {