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
Этот коммит содержится в:
Harrison Healey
2016-08-03 00:01:33 -04:00
коммит произвёл Corey Hulen
родитель 790dd91e7d
Коммит 1de3bd3b43
19 изменённых файлов: 398 добавлений и 82 удалений

Просмотреть файл

@@ -2,7 +2,7 @@
// See License.txt for license information.
import $ from 'jquery';
import * as Utils from 'utils/utils.jsx';
import * as UserAgent from 'utils/user_agent.jsx';
import React from 'react';
@@ -18,7 +18,7 @@ export default class SettingsSidebar extends React.Component {
$(e.target).closest('.settings-modal').addClass('display--content');
}
componentDidMount() {
if (Utils.isBrowserFirefox()) {
if (UserAgent.isFirefox()) {
$('.settings-modal .settings-table .nav').addClass('position--top');
}
}