mirror of
https://github.com/scratchfoundation/scratchjr.git
synced 2025-03-20 18:10:09 -04:00
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:
parent
5a36ea263b
commit
db3724072f
1 changed files with 4 additions and 1 deletions
|
@ -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');
|
||||
|
|
Loading…
Reference in a new issue