Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion config/polyfills.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ if (typeof Promise === 'undefined') {
// inconsistent state due to an error, but it gets swallowed by a Promise,
// and the user has no idea what causes React's erratic future behavior.
require('promise/lib/rejection-tracking').enable();
window.Promise = require('promise/lib/es6-extensions.js');
if (typeof window !== 'undefined') {
window.Promise = require('promise/lib/es6-extensions.js');
}
}

// fetch() polyfill for making API calls.
Expand Down