aboutsummaryrefslogtreecommitdiffstats
path: root/js/storage.js
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2019-12-30 15:55:13 -0500
committerJesús <heckyel@hyperbola.info>2019-12-30 15:55:13 -0500
commit288df6a7bf8b933e2dc499e38f4915fcf974c14b (patch)
tree77bba994f260c064d3ee7f76c427ddfaa4f91710 /js/storage.js
parenta2c9deaa145b780722e93b3899600f287c8094a4 (diff)
downloadematrix-288df6a7bf8b933e2dc499e38f4915fcf974c14b.tar.lz
ematrix-288df6a7bf8b933e2dc499e38f4915fcf974c14b.tar.xz
ematrix-288df6a7bf8b933e2dc499e38f4915fcf974c14b.zip
backport
- Flush caches on upgrade - Properly handle FrameModule's unloading - Use the new module and remove the old implementation
Diffstat (limited to 'js/storage.js')
-rw-r--r--js/storage.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/js/storage.js b/js/storage.js
index b3a5e7b..012d2f2 100644
--- a/js/storage.js
+++ b/js/storage.js
@@ -21,10 +21,12 @@
uMatrix Home: https://github.com/gorhill/uMatrix
*/
-/* global objectAssign, punycode, publicSuffixList */
+/* global objectAssign, publicSuffixList */
'use strict';
+Components.utils.import('chrome://ematrix/content/lib/PublicSuffixList.jsm');
+
/******************************************************************************/
ηMatrix.getBytesInUse = function() {
@@ -264,7 +266,7 @@
if ( entries.hasOwnProperty(assetKey) === false ) { continue; }
entry = entries[assetKey];
if ( entry.content !== 'filters' ) { continue; }
- availableHostsFiles[assetKey] = objectAssign({}, entry);
+ availableHostsFiles[assetKey] = Object.assign({}, entry);
}
// Now get user's selection of lists
@@ -517,7 +519,7 @@
var applyPublicSuffixList = function(details) {
if ( !details.error ) {
- publicSuffixList.parse(details.content, punycode.toASCII);
+ publicSuffixList.parse(details.content, Punycode.toASCII);
}
callback();
};