diff options
author | Martin Stubenschrott <stubenschrott@gmx.net> | 2008-12-17 02:03:39 +0100 |
---|---|---|
committer | Martin Stubenschrott <stubenschrott@gmx.net> | 2008-12-17 02:03:39 +0100 |
commit | 2a4352b868b56b14f1b12a1f0700d118fe6503d3 (patch) | |
tree | 417db9b174a451bca847a8b01d82da19d38cbba5 /common/content/liberator-overlay.js | |
parent | 02931456843d615e21112f97342f3d3acc9d7325 (diff) | |
download | pentadactyl-2a4352b868b56b14f1b12a1f0700d118fe6503d3.tar.gz |
fixed muttator with Cc/Ci
Diffstat (limited to 'common/content/liberator-overlay.js')
-rw-r--r-- | common/content/liberator-overlay.js | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/common/content/liberator-overlay.js b/common/content/liberator-overlay.js index a2ec2d73..288559e2 100644 --- a/common/content/liberator-overlay.js +++ b/common/content/liberator-overlay.js @@ -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]; |