mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 23:02:27 +01:00
fixed muttator with Cc/Ci
This commit is contained in:
@@ -5,7 +5,8 @@
|
|||||||
|
|
||||||
modules.modules = modules;
|
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)
|
function load(script)
|
||||||
{
|
{
|
||||||
for (let [i, base] in Iterator(prefix))
|
for (let [i, base] in Iterator(prefix))
|
||||||
@@ -19,14 +20,14 @@
|
|||||||
{
|
{
|
||||||
if (i + 1 < prefix.length)
|
if (i + 1 < prefix.length)
|
||||||
continue;
|
continue;
|
||||||
if (Cu.reportError)
|
if (Components.utils.reportError)
|
||||||
Cu.reportError(e);
|
Components.utils.reportError(e);
|
||||||
dump("liberator: Loading script " + script + ": " + e + "\n");
|
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];
|
let prefix = [BASE];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user