Drop support for iOS < 15.7 (#19847)

https://meta.discourse.org/t/224747
This commit is contained in:
David Taylor
2023-01-16 17:28:59 +00:00
committed by GitHub
parent 0fea826f42
commit 624f4a7de9
11 changed files with 65 additions and 376 deletions
@@ -1,7 +1,14 @@
/* eslint-disable no-var */ // `let` is not supported in very old browsers
(function () {
if (!window.WeakMap || !window.Promise || typeof globalThis === "undefined") {
if (
!window.WeakMap ||
!window.Promise ||
typeof globalThis === "undefined" ||
!String.prototype.replaceAll ||
!CSS.supports ||
!CSS.supports("aspect-ratio: 1")
) {
window.unsupportedBrowser = true;
} else {
// Some implementations of `WeakMap.prototype.has` do not accept false