From c9532aa9677a920d46dad57d1fa87c7c20778264 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs?= Date: Sat, 2 May 2020 17:41:29 -0500 Subject: Make utils.js a module The main difference is that modules share their code within the same session. --- js/messaging.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'js/messaging.js') 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, -- cgit v1.2.3