mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 22:42:26 +01:00
fixed muttator with Cc/Ci
This commit is contained in:
@@ -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];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user