Permalink
Browse files

Don't use "Cc" and "Ci" when they're not defined.

Fixes #1374
  • Loading branch information...
1 parent 674a51d commit f695988b9fd762f715338f0ead339e34d33d2798 @arantius arantius committed Jul 11, 2011
Showing with 5 additions and 4 deletions.
  1. +5 −4 content/utils.js
View
@@ -285,10 +285,11 @@ function GM_compareVersions(aV1, aV2) {
/** Runs nsIVersionComparator.compare() on the Firefox version. */
function GM_compareFirefoxVersion(aTarget) {
- var appInfo = Cc["@mozilla.org/xre/app-info;1"]
- .getService(Ci.nsIXULAppInfo);
- var versionChecker = Cc["@mozilla.org/xpcom/version-comparator;1"]
- .getService(Ci.nsIVersionComparator);
+ var appInfo = Components.classes["@mozilla.org/xre/app-info;1"]
+ .getService(Components.interfaces.nsIXULAppInfo);
+ var versionChecker = Components
+ .classes["@mozilla.org/xpcom/version-comparator;1"]
+ .getService(Components.interfaces.nsIVersionComparator);
return versionChecker.compare(appInfo.version, aTarget);
}

0 comments on commit f695988

Please sign in to comment.