ie9 gfys
This commit is contained in:
parent
dfd31e69ca
commit
965a80fb3f
1 changed files with 5 additions and 1 deletions
|
|
@ -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')));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue