Improve iOS 12 check (#9816)

This commit is contained in:
Bram Kragten 2021-08-16 05:42:39 +02:00 committed by GitHub
parent 1e8903fd76
commit 2556b0d157
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,5 +21,5 @@
"content" in document.createElement("template"))) { "content" in document.createElement("template"))) {
document.write("<script src='/static/polyfills/webcomponents-bundle.js'><"+"/script>"); document.write("<script src='/static/polyfills/webcomponents-bundle.js'><"+"/script>");
} }
var isS11_12 = /.*Version\/(?:11|12)(?:\.\d+)*.*Safari\//.test(navigator.userAgent); var isS11_12 = /(?:.*(?:iPhone|iPad).*OS (?:11|12)_\d)|(?:.*Version\/(?:11|12)(?:\.\d+)*.*Safari\/)/.test(navigator.userAgent);
</script> </script>