1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 20:52:26 +01:00

fixed muttator with Cc/Ci

This commit is contained in:
Martin Stubenschrott
2008-12-17 02:03:39 +01:00
parent 0293145684
commit 2a4352b868

View File

@@ -5,7 +5,8 @@
modules.modules = modules;
const loader = Cc["@mozilla.org/moz/jssubscript-loader;1"].getService(Ci.mozIJSSubScriptLoader);
const loader = Components.classes["@mozilla.org/moz/jssubscript-loader;1"]
.getService(Components.interfaces.mozIJSSubScriptLoader);
function load(script)
{
for (let [i, base] in Iterator(prefix))
@@ -19,14 +20,14 @@
{
if (i + 1 < prefix.length)
continue;
if (Cu.reportError)
Cu.reportError(e);
if (Components.utils.reportError)
Components.utils.reportError(e);
dump("liberator: Loading script " + script + ": " + e + "\n");
}
}
}
Cu.import("resource://liberator/storage.jsm", modules);
Components.utils.import("resource://liberator/storage.jsm", modules);
let prefix = [BASE];