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
pull/11470/head
Matt N 2018-01-05 14:28:03 -05:00 committed by Paulus Schoutsen
parent e0a1b87296
commit b61197196e
1 changed files with 3 additions and 2 deletions

View File

@ -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