Index: lib/main.js |
diff --git a/lib/main.js b/lib/main.js |
index 1e1dc3cf924adc5ca76d6923ac004bcb9121055d..df9b54a62a138cac1ca095967a0408a267c41388 100644 |
--- a/lib/main.js |
+++ b/lib/main.js |
@@ -10,9 +10,9 @@ |
* @module main |
*/ |
-Cu.import("resource://gre/modules/XPCOMUtils.jsm"); |
-Cu.import("resource://gre/modules/Services.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 {Promise} = Cu.import("resource://gre/modules/Promise.jsm", {}); |
require("commandLine"); |
let {run} = require("crawler"); |