Make IE compatible
This commit is contained in:
parent
0c2f82eec8
commit
97321e3730
|
@ -42,7 +42,8 @@
|
|||
"development": [
|
||||
"last 1 chrome version",
|
||||
"last 1 firefox version",
|
||||
"last 1 safari version"
|
||||
"last 1 safari version",
|
||||
"ie 11"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
@ -13,7 +13,7 @@ import translations from './i18n/locales';
|
|||
addLocaleData(enLocaleData);
|
||||
addLocaleData(koLocaleData);
|
||||
|
||||
var locale = (navigator.languages.slice(0, 2) && navigator.languages[0].slice(0,2)) || "en";
|
||||
var locale = navigator.userLanguage || (navigator.languages.slice(0, 2) && navigator.languages[0].slice(0,2)) || "en";;
|
||||
var messages = translations[locale];
|
||||
|
||||
class App extends Component {
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import 'react-app-polyfill/ie9';
|
||||
import 'react-app-polyfill/stable';
|
||||
import React from 'react';
|
||||
import ReactDOM from 'react-dom';
|
||||
import './index.css';
|
||||
|
|
Loading…
Reference in New Issue