Only polyfill window.Intl when it doesn't exist

The Chrome Webview already had an existing window.Intl. This was causing an assignment error.
This commit is contained in:
Tim Mickel 2016-02-08 12:33:33 -05:00
parent 5a36ea263b
commit db3724072f

View file

@ -1,7 +1,10 @@
import Cookie from './Cookie';
import Intl from 'intl';
import IO from '../iPad/IO';
window.Intl = Intl;
if (!window.Intl) {
window.Intl = Intl;
}
require('intl/locale-data/jsonp/en.js');
require('intl/locale-data/jsonp/es.js');