diff options
author | Matt A. Tobin <email@mattatobin.com> | 2020-02-05 13:52:28 -0500 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2020-04-14 12:37:02 +0200 |
commit | 62f39d829dbc630ab287545442ef9a339d2b8fb1 (patch) | |
tree | c8b63df6a40e5c3f0442c5f3608ee8c5a8d85e35 /toolkit/profile/content/createProfileWizard.js | |
parent | 28971524e4d4832e5c92276cc989535e75f04acc (diff) | |
download | UXP-62f39d829dbc630ab287545442ef9a339d2b8fb1.tar UXP-62f39d829dbc630ab287545442ef9a339d2b8fb1.tar.gz UXP-62f39d829dbc630ab287545442ef9a339d2b8fb1.tar.lz UXP-62f39d829dbc630ab287545442ef9a339d2b8fb1.tar.xz UXP-62f39d829dbc630ab287545442ef9a339d2b8fb1.zip |
Issue #65 - Remove AppConstants from toolkit/profile
Diffstat (limited to 'toolkit/profile/content/createProfileWizard.js')
-rw-r--r-- | toolkit/profile/content/createProfileWizard.js | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/toolkit/profile/content/createProfileWizard.js b/toolkit/profile/content/createProfileWizard.js index 14d006b31..f13eb8faa 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,12 @@ function checkCurrentInput(currentInput) if (!errorMessage) { finishText.className = ""; - if (AppConstants.platform == "macosx") { - finishText.firstChild.data = gProfileManagerBundle.getString("profileFinishTextMac"); - } - else { - finishText.firstChild.data = gProfileManagerBundle.getString("profileFinishText"); - } + finishText.firstChild.data = gProfileManagerBundle +#ifdef XP_MACOSX + .getString("profileFinishTextMac"); +#else + .getString("profileFinishText"); +#endif canAdvance = true; } else { |