summaryrefslogtreecommitdiffstats
path: root/toolkit/profile/content/createProfileWizard.js
diff options
context:
space:
mode:
Diffstat (limited to 'toolkit/profile/content/createProfileWizard.js')
-rw-r--r--toolkit/profile/content/createProfileWizard.js13
1 files changed, 5 insertions, 8 deletions
diff --git a/toolkit/profile/content/createProfileWizard.js b/toolkit/profile/content/createProfileWizard.js
index 14d006b31..aa87eacd7 100644
--- a/toolkit/profile/content/createProfileWizard.js
+++ b/toolkit/profile/content/createProfileWizard.js
@@ -5,8 +5,6 @@
const C = Components.classes;
const I = Components.interfaces;
-Components.utils.import("resource://gre/modules/AppConstants.jsm");
-
const ToolkitProfileService = "@mozilla.org/toolkit/profile-service;1";
var gProfileService;
@@ -118,12 +116,11 @@ function checkCurrentInput(currentInput)
if (!errorMessage) {
finishText.className = "";
- if (AppConstants.platform == "macosx") {
- finishText.firstChild.data = gProfileManagerBundle.getString("profileFinishTextMac");
- }
- else {
- finishText.firstChild.data = gProfileManagerBundle.getString("profileFinishText");
- }
+#ifdef XP_MACOSX
+ finishText.firstChild.data = gProfileManagerBundle.getString("profileFinishTextMac");
+#else
+ finishText.firstChild.data = gProfileManagerBundle.getString("profileFinishText");
+#endif
canAdvance = true;
}
else {