mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-19 07:16:39 +00:00
Improve iOS 12 check (#9816)
This commit is contained in:
parent
1e8903fd76
commit
2556b0d157
@ -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>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user