Index: lib/crawler.js |
diff --git a/lib/crawler.js b/lib/crawler.js |
index c090507357976205848dc979e1a00e7baa5b40ef..4a39784f414862cc3aab0f2cea6a46ccc5e69c70 100644 |
--- a/lib/crawler.js |
+++ b/lib/crawler.js |
@@ -10,9 +10,10 @@ |
* @module crawler |
*/ |
-Cu.import("resource://gre/modules/Services.jsm"); |
-Cu.import("resource://gre/modules/Task.jsm"); |
-Cu.import("resource://gre/modules/Promise.jsm"); |
+const {Services} = Cu.import("resource://gre/modules/Services.jsm", {}); |
+const {XPCOMUtils} = Cu.import("resource://gre/modules/XPCOMUtils.jsm", {}); |
+const {Task} = Cu.import("resource://gre/modules/Task.jsm", {}); |
+const {Promise} = Cu.import("resource://gre/modules/Promise.jsm", {}); |
function abprequire(module) |
{ |