mirror of
https://github.com/home-assistant/core.git
synced 2025-07-27 07:07:28 +00:00
iOS 10 should be served javascript_version:es5 (#11387)
* iOS 10 should be served javascript_version:es5 Fixes #11234 * Update min Safari version to 12
This commit is contained in:
parent
65d841c3a6
commit
71fb7a6ef6
@ -586,9 +586,10 @@ def _is_latest(js_option, request):
|
|||||||
from user_agents import parse
|
from user_agents import parse
|
||||||
useragent = parse(useragent)
|
useragent = parse(useragent)
|
||||||
|
|
||||||
# on iOS every browser is a Safari which we support from version 10.
|
# on iOS every browser is a Safari which we support from version 11.
|
||||||
if useragent.os.family == 'iOS':
|
if useragent.os.family == 'iOS':
|
||||||
return useragent.os.version[0] >= 10
|
# Was >= 10, temp setting it to 12 to work around issue #11387
|
||||||
|
return useragent.os.version[0] >= 12
|
||||||
|
|
||||||
family_min_version = {
|
family_min_version = {
|
||||||
'Chrome': 50, # Probably can reduce this
|
'Chrome': 50, # Probably can reduce this
|
||||||
|
Loading…
x
Reference in New Issue
Block a user