File tree 2 files changed +3
-2
lines changed
packages/react-app-polyfill
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ if (typeof Promise === 'undefined') {
11
11
// inconsistent state due to an error, but it gets swallowed by a Promise,
12
12
// and the user has no idea what causes React's erratic future behavior.
13
13
require ( 'promise/lib/rejection-tracking' ) . enable ( ) ;
14
- window . Promise = require ( 'promise/lib/es6-extensions.js' ) ;
14
+ self . Promise = require ( 'promise/lib/es6-extensions.js' ) ;
15
15
}
16
16
17
17
// Make sure we're in a Browser-like environment before importing polyfills
Original file line number Diff line number Diff line change @@ -11,4 +11,5 @@ require('./ie11');
11
11
// React 16+ relies on Map, Set, and requestAnimationFrame
12
12
require ( 'core-js/features/map' ) ;
13
13
require ( 'core-js/features/set' ) ;
14
- require ( 'raf' ) . polyfill ( window ) ;
14
+
15
+ require ( 'raf' ) . polyfill ( ) ;
You can’t perform that action at this time.
0 commit comments