diff options
author | Jesús <heckyel@hyperbola.info> | 2020-05-02 17:41:29 -0500 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2020-05-02 17:41:29 -0500 |
commit | c9532aa9677a920d46dad57d1fa87c7c20778264 (patch) | |
tree | 03e9030299ba9b2ddc05a48aa551dd382e68b7c3 /js/messaging.js | |
parent | 88e55b7e0c00b529e28c1e65b86ee99254a65dfb (diff) | |
download | ematrix-c9532aa9677a920d46dad57d1fa87c7c20778264.tar.lz ematrix-c9532aa9677a920d46dad57d1fa87c7c20778264.tar.xz ematrix-c9532aa9677a920d46dad57d1fa87c7c20778264.zip |
Make utils.js a module
The main difference is that modules share their code within the same
session.
Diffstat (limited to 'js/messaging.js')
-rw-r--r-- | js/messaging.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/js/messaging.js b/js/messaging.js index 03d6481..133d5ed 100644 --- a/js/messaging.js +++ b/js/messaging.js @@ -25,7 +25,7 @@ // Default handler (function () { - Cu.import('chrome://ematrix/content/lib/UriTools.jsm'); + Cu.import('chrome://ematrix/content/lib/Tools.jsm'); let ηm = ηMatrix; @@ -69,10 +69,10 @@ }; break; case 'gotoExtensionURL': - ηm.gotoExtensionURL(request); + Tools.gotoExtensionURL(request); break; case 'gotoURL': - ηm.gotoURL(request); + Tools.gotoURL(request); break; case 'mustBlock': response = ηm.mustBlock(request.scope, |