Issue #65 - Remove AppConstants from toolkit/profile

This commit is contained in:
Matt A. Tobin 2020-02-05 13:52:28 -05:00 committed by Roy Tam
commit b358ba2a2c
3 changed files with 11 additions and 13 deletions

View file

@ -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 {