Index: lib/compat.js |
=================================================================== |
--- a/lib/compat.js |
+++ b/lib/compat.js |
@@ -25,17 +25,17 @@ |
// |
// XPCOM emulation |
// |
function nsIFileURL() {} |
function nsIHttpChannel() {} |
-let Components = { |
+let ComponentsObject = { |
interfaces: |
{ |
nsIFile: {DIRECTORY_TYPE: 0}, |
nsIFileURL, |
nsIHttpChannel, |
nsITimer: {TYPE_REPEATING_SLACK: 0}, |
nsIInterfaceRequestor: null, |
nsIChannelEventSink: null |
@@ -68,20 +68,20 @@ |
{ |
console.error(e); |
console.trace(); |
} |
}, |
manager: null, |
ID() { return null; } |
}; |
-const Cc = Components.classes; |
-const Ci = Components.interfaces; |
-const Cr = Components.results; |
-const Cu = Components.utils; |
+const Cc = ComponentsObject.classes; |
+const Ci = ComponentsObject.interfaces; |
+const Cr = ComponentsObject.results; |
+const Cu = ComponentsObject.utils; |
Cu.import.resources = new Map(); |
Cu.import.resources.set("XPCOMUtils", { |
generateQI() {} |
}); |
// |