This commit is contained in:
vjrj 2018-03-03 11:43:17 +01:00
parent dfd31e69ca
commit 965a80fb3f

View file

@ -5,4 +5,8 @@ import App from '../../ui/layouts/App/App';
import '../../ui/stylesheets/app.scss';
Meteor.startup(() => render(<App />, document.getElementById('react-root')));
// https://stackoverflow.com/questions/19562207/jquery-detect-browser-ie9-and-below-and-throw-up-a-modal-to-upgrade
const isIE9OrBelow = () => /MSIE\s/.test(navigator.userAgent) && parseFloat(navigator.appVersion.split('MSIE')[1]) < 10;
if (isIE9OrBelow()) window.alert('You are using an outdated browser. Please use Chrome or Firefox to display this site.');
else Meteor.startup(() => render(<App />, document.getElementById('react-root')));