mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-15 23:00:57 +00:00
solve compatibility problems
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
'use strict';
|
||||
|
||||
require('react-app-polyfill/ie9');
|
||||
require('react-app-polyfill/stable');
|
||||
|
||||
if (typeof Promise === 'undefined') {
|
||||
// Rejection tracking prevents a common issue where React gets into an
|
||||
// inconsistent state due to an error, but it gets swallowed by a Promise,
|
||||
@@ -8,9 +11,6 @@ if (typeof Promise === 'undefined') {
|
||||
window.Promise = require('promise/lib/es6-extensions.js');
|
||||
}
|
||||
|
||||
// require('babel-polyfill');
|
||||
require('react-app-polyfill/stable');
|
||||
|
||||
// fetch() polyfill for making API calls.
|
||||
require('whatwg-fetch');
|
||||
|
||||
|
Reference in New Issue
Block a user