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 GitHub
parent a4fc6ccc12
commit dfe11321d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 0 deletions

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