1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-22 16:18:08 +02:00

Merge pull request #16401 from Snuffleupagus/Safari-15.4

[api-minor] Update the minimum supported Safari version to 15.4
This commit is contained in:
Tim van der Meij 2023-05-12 10:11:53 +02:00 committed by GitHub
commit a5336d9d79
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 17 additions and 66 deletions

View file

@ -36,7 +36,7 @@ import { isNodeJS } from "./is_node.js";
polyfillPath2D(globalThis);
})();
// Support: Chrome<92, Safari<15.4
// Support: Chrome<92
(function checkArrayAt() {
if (Array.prototype.at) {
return;
@ -44,7 +44,7 @@ import { isNodeJS } from "./is_node.js";
require("core-js/es/array/at.js");
})();
// Support: Chrome<92, Safari<15.4
// Support: Chrome<92
(function checkTypedArrayAt() {
if (Uint8Array.prototype.at) {
return;
@ -52,7 +52,7 @@ import { isNodeJS } from "./is_node.js";
require("core-js/es/typed-array/at.js");
})();
// Support: Chrome<98, Safari<15.4
// Support: Chrome<98
(function checkStructuredClone() {
if (globalThis.structuredClone) {
return;