Make IE compatible

This commit is contained in:
Jinho 2019-06-26 21:51:48 +09:00
parent 0c2f82eec8
commit 97321e3730
3 changed files with 4 additions and 2 deletions

View File

@ -42,7 +42,8 @@
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
"last 1 safari version",
"ie 11"
]
}
}

View File

@ -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 {

View File

@ -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';