mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-10 10:15:37 +02:00
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:
parent
66acc7397f
commit
01d624f6a0
2 changed files with 14 additions and 8 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue