iOS 10 should be served javascript_version:es5 (#11387)
* iOS 10 should be served javascript_version:es5 Fixes #11234 * Update min Safari version to 12pull/11470/head
parent
e0a1b87296
commit
b61197196e
|
@ -582,9 +582,10 @@ def _is_latest(js_option, request):
|
|||
from user_agents import parse
|
||||
useragent = parse(request.headers.get('User-Agent'))
|
||||
|
||||
# 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':
|
||||
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 = {
|
||||
'Chrome': 50, # Probably can reduce this
|
||||
|
|
Loading…
Reference in New Issue