summaryrefslogtreecommitdiffstats
path: root/toolkit/profile/content/profileSelection.js
diff options
context:
space:
mode:
authorMatt A. Tobin <email@mattatobin.com>2020-02-05 13:52:28 -0500
committerMatt A. Tobin <email@mattatobin.com>2020-02-05 13:52:28 -0500
commit840ecb5262c7330f98f37460b9a209d80407d91c (patch)
tree900ef8c01c8f90cdd38a62a2664ea0df62a65dec /toolkit/profile/content/profileSelection.js
parenta595451104a9ea155703899ab8fbc9f37547bcd9 (diff)
downloadUXP-840ecb5262c7330f98f37460b9a209d80407d91c.tar
UXP-840ecb5262c7330f98f37460b9a209d80407d91c.tar.gz
UXP-840ecb5262c7330f98f37460b9a209d80407d91c.tar.lz
UXP-840ecb5262c7330f98f37460b9a209d80407d91c.tar.xz
UXP-840ecb5262c7330f98f37460b9a209d80407d91c.zip
Issue #65 - Remove AppConstants from toolkit/profile
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..65a2ba13f 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;
@@ -134,9 +133,10 @@ function onProfilesKey(aEvent)
{
switch ( aEvent.keyCode )
{
+#ifndef XP_MACOSX
case KeyEvent.DOM_VK_BACK_SPACE:
- if (AppConstants.platform != "macosx")
- break;
+ break;
+#endif
case KeyEvent.DOM_VK_DELETE:
ConfirmDelete();
break;