From 8ec07a42a63f6f5097502c4ac402bdb6c2e1169d Mon Sep 17 00:00:00 2001 From: Alex Liebowitz Date: Mon, 23 May 2016 13:00:04 -0400 Subject: [PATCH] Add back Linux check for close button --- js/page/home.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/js/page/home.js b/js/page/home.js index cd8fc498c..c32f66da0 100644 --- a/js/page/home.js +++ b/js/page/home.js @@ -252,7 +252,6 @@ var mainMenuStyle = { }; var MainMenu = React.createClass({ - _showClose: /linux/i.test(navigator.userAgent), // @TODO: find a way to use getVersionInfo() here without messy state management propTypes: { show: React.PropTypes.bool, }, @@ -262,13 +261,15 @@ var MainMenu = React.createClass({ } }, render: function() { + var isLinux = /linux/i.test(navigator.userAgent); // @TODO: find a way to use getVersionInfo() here without messy state management return (
- + {isLinux ? + : null}
); }