FIX: Polyfill Promise for IE11 (#9057)

Co-authored-by: Joffrey JAFFEUX <j.jaffeux@gmail.com>
This commit is contained in:
David Taylor 2020-02-27 12:13:07 +00:00 committed by Neil Lalonde
parent c7634d56f6
commit b8e4b5f884
No known key found for this signature in database
GPG Key ID: FF871CA9037D0A91

View File

@ -970,3 +970,12 @@ if (!String.prototype.startsWith) {
return ES6;
});
/* eslint-enable */
// Polyfill Promise - used by popper.js
window.addEventListener(
"load",
function() {
window.Promise = require("rsvp").Promise;
},
false
);