diff options
author | Matt A. Tobin <email@mattatobin.com> | 2020-02-01 23:45:36 -0500 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2020-04-14 12:26:11 +0200 |
commit | 4acc0d58cb0fa989d609972493be363c105f2594 (patch) | |
tree | b0c4dfd608561041b83da74a1eba5739ab3931ec /toolkit/content/aboutProfiles.js | |
parent | a1c9dd468daa6d729c9d11416fb8a5c2dceb2c88 (diff) | |
download | UXP-4acc0d58cb0fa989d609972493be363c105f2594.tar UXP-4acc0d58cb0fa989d609972493be363c105f2594.tar.gz UXP-4acc0d58cb0fa989d609972493be363c105f2594.tar.lz UXP-4acc0d58cb0fa989d609972493be363c105f2594.tar.xz UXP-4acc0d58cb0fa989d609972493be363c105f2594.zip |
Issue #65 - Remove AppConstants from toolkit/content
Diffstat (limited to 'toolkit/content/aboutProfiles.js')
-rw-r--r-- | toolkit/content/aboutProfiles.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/toolkit/content/aboutProfiles.js b/toolkit/content/aboutProfiles.js index cddf88819..29c5f67ad 100644 --- a/toolkit/content/aboutProfiles.js +++ b/toolkit/content/aboutProfiles.js @@ -8,7 +8,6 @@ const {classes: Cc, interfaces: Ci, utils: Cu, results: Cr} = Components; Cu.import('resource://gre/modules/Services.jsm'); Cu.import('resource://gre/modules/XPCOMUtils.jsm'); -Cu.import('resource://gre/modules/AppConstants.jsm'); XPCOMUtils.defineLazyServiceGetter( this, @@ -130,12 +129,13 @@ function display(profileData) { if (dir) { td.appendChild(document.createTextNode(' ')); let button = document.createElement('button'); +#ifdef XP_WIN + let string = 'winOpenDir2'; +#elifdef XP_MACOSX + let string = 'macOpenDir'; +#else let string = 'openDir'; - if (AppConstants.platform == "win") { - string = 'winOpenDir2'; - } else if (AppConstants.platform == "macosx") { - string = 'macOpenDir'; - } +#endif let buttonText = document.createTextNode(bundle.GetStringFromName(string)); button.appendChild(buttonText); td.appendChild(button); |