Add an Array.from polyfill, using core-js, and remove some compatibility hacks from the src/display/content_disposition.js file

This commit is contained in:
Jonas Jenwald 2019-01-20 08:49:20 +01:00
parent 66acc7397f
commit 01d624f6a0
2 changed files with 14 additions and 8 deletions

View file

@ -151,6 +151,15 @@ const hasDOM = typeof window === 'object' && typeof document === 'object';
require('core-js/fn/array/includes');
})();
// Provides support for Array.from in legacy browsers.
// Support: IE
(function checkArrayFrom() {
if (Array.from) {
return;
}
require('core-js/fn/array/from');
})();
// Provides support for Object.assign in legacy browsers.
// Support: IE
(function checkObjectAssign() {