mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-10 10:15:37 +02:00
Merge remote-tracking branch 'mozilla/version-2.0' into v2
This commit is contained in:
commit
b4e25fb2e8
18 changed files with 66 additions and 252 deletions
|
@ -839,6 +839,25 @@ PDFJS.compatibilityChecked = true;
|
|||
};
|
||||
})();
|
||||
|
||||
// Provides support for Object.values in legacy browsers.
|
||||
// Support: IE.
|
||||
(function checkObjectValues() {
|
||||
if (Object.values) {
|
||||
return;
|
||||
}
|
||||
Object.values = require('core-js/fn/object/values');
|
||||
})();
|
||||
|
||||
// Provides support for Array.prototype.includes in legacy browsers.
|
||||
// Support: IE.
|
||||
(function checkArrayIncludes() {
|
||||
if (Array.prototype.includes) {
|
||||
return;
|
||||
}
|
||||
Array.prototype.includes = require('core-js/fn/array/includes');
|
||||
})();
|
||||
|
||||
|
||||
// Provides support for Number.isNaN in legacy browsers.
|
||||
// Support: IE.
|
||||
(function checkNumberIsNaN() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue