summaryrefslogtreecommitdiffstats
path: root/toolkit/profile/content/profileSelection.js
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2020-02-07 10:57:04 +0100
committerGitHub <noreply@github.com>2020-02-07 10:57:04 +0100
commit6c82d043a1fbcda650057467ae2858025290ed25 (patch)
tree0e6ed8ca0a0d12653351c67d8de62a372c954f29 /toolkit/profile/content/profileSelection.js
parenta6ef90b1830e263fefda7bcb6e7b74464044a678 (diff)
parentfa52fa60b70c5883acd4a8edd8e1f89c3d5f3920 (diff)
downloadUXP-6c82d043a1fbcda650057467ae2858025290ed25.tar
UXP-6c82d043a1fbcda650057467ae2858025290ed25.tar.gz
UXP-6c82d043a1fbcda650057467ae2858025290ed25.tar.lz
UXP-6c82d043a1fbcda650057467ae2858025290ed25.tar.xz
UXP-6c82d043a1fbcda650057467ae2858025290ed25.zip
Merge pull request #1394 from MoonchildProductions/appconst-work
The rest of removing AppConstants for Platform
Diffstat (limited to 'toolkit/profile/content/profileSelection.js')
-rw-r--r--toolkit/profile/content/profileSelection.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/toolkit/profile/content/profileSelection.js b/toolkit/profile/content/profileSelection.js
index 02b9d6873..05ef6f5ed 100644
--- a/toolkit/profile/content/profileSelection.js
+++ b/toolkit/profile/content/profileSelection.js
@@ -4,7 +4,6 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-Components.utils.import("resource://gre/modules/AppConstants.jsm");
Components.utils.import("resource://gre/modules/Services.jsm");
const C = Components.classes;
@@ -135,8 +134,9 @@ function onProfilesKey(aEvent)
switch ( aEvent.keyCode )
{
case KeyEvent.DOM_VK_BACK_SPACE:
- if (AppConstants.platform != "macosx")
- break;
+#ifndef XP_MACOSX
+ break;
+#endif
case KeyEvent.DOM_VK_DELETE:
ConfirmDelete();
break;