summaryrefslogtreecommitdiffstats
path: root/webapp/components/new_channel_modal.jsx
diff options
context:
space:
mode:
authorHarrison Healey <harrisonmhealey@gmail.com>2016-08-03 00:01:33 -0400
committerCorey Hulen <corey@hulen.com>2016-08-02 20:01:33 -0800
commit1de3bd3b4340cb51b2699a14a92d653db988a988 (patch)
tree604703f9acf4ea3b71f30bdfa532020e9fb233be /webapp/components/new_channel_modal.jsx
parent790dd91e7d93b5debaf86915c34f8a73a3ff95bd (diff)
downloadchat-1de3bd3b4340cb51b2699a14a92d653db988a988.tar.gz
chat-1de3bd3b4340cb51b2699a14a92d653db988a988.tar.bz2
chat-1de3bd3b4340cb51b2699a14a92d653db988a988.zip
PLT-3640 Add mobile landing pages (#3674)
* PLT-3640 Moved all clientside user agent snooping into a single file * PLT-3640 Added mobile landing pages on login to iOS and Android web apps * PLT-3640 Moved landing page to appear before first login * PLT-3640 Fixed detection of Chrome on Android * PLT-3640 Disabled mobile landing pages when their respective URLs are set to blank
Diffstat (limited to 'webapp/components/new_channel_modal.jsx')
-rw-r--r--webapp/components/new_channel_modal.jsx5
1 files changed, 4 insertions, 1 deletions
diff --git a/webapp/components/new_channel_modal.jsx b/webapp/components/new_channel_modal.jsx
index 1198335ca..e174ddd32 100644
--- a/webapp/components/new_channel_modal.jsx
+++ b/webapp/components/new_channel_modal.jsx
@@ -4,6 +4,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 Constants from 'utils/constants.jsx';
@@ -53,9 +54,11 @@ class NewChannelModal extends React.Component {
}
componentDidMount() {
- if (Utils.isBrowserIE()) {
+ // ???
+ if (UserAgent.isInternetExplorer()) {
$('body').addClass('browser--ie');
}
+
PreferenceStore.addChangeListener(this.onPreferenceChange);
}