From 7ee1fec6bf21ab3fb63740c94cc92c2317a0092e Mon Sep 17 00:00:00 2001 From: Hyeseong Kim Date: Wed, 4 Jan 2017 07:15:16 +0900 Subject: Fix isMobileApp() to also apply to Android app (#4892) * Fix isMobileApp() to also apply to Android app * Add checking agent to LHS download app link --- webapp/components/sidebar_header_dropdown.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'webapp/components/sidebar_header_dropdown.jsx') diff --git a/webapp/components/sidebar_header_dropdown.jsx b/webapp/components/sidebar_header_dropdown.jsx index ad0a6e4c6..826d9a342 100644 --- a/webapp/components/sidebar_header_dropdown.jsx +++ b/webapp/components/sidebar_header_dropdown.jsx @@ -3,6 +3,7 @@ import $ from 'jquery'; import ReactDOM from 'react-dom'; +import * as UserAgent from 'utils/user_agent.jsx'; import * as Utils from 'utils/utils.jsx'; import * as GlobalActions from 'actions/global_actions.jsx'; @@ -412,7 +413,7 @@ export default class SidebarHeaderDropdown extends React.Component { let nativeAppDivider = null; let nativeAppLink = null; - if (global.window.mm_config.AppDownloadLink) { + if (global.window.mm_config.AppDownloadLink && !UserAgent.isMobileApp()) { nativeAppDivider =
  • ; nativeAppLink = (
  • -- cgit v1.2.3-1-g7c22