1
0
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:
shanshuirenjia
2019-06-04 16:18:32 +08:00
parent 9ba1278eca
commit a0d5ad5e93
6 changed files with 27 additions and 7 deletions

View File

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