Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…into andrey-git-patch-1
  • Loading branch information
andrey-git committed Jan 31, 2018
2 parents 607101e + 764343d commit 2588863
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions homeassistant/components/frontend/__init__.py
Expand Up @@ -585,11 +585,13 @@ def _is_latest(js_option, request):
return useragent.os.version[0] >= 12

family_min_version = {
'Chrome': 54, # Object.values
'Firefox': 47, # Object.values
'Opera': 41, # Object.values
'Edge': 14, # Array.prototype.includes added in 14
'Safari': 10, # many features not supported by 9
'Chrome': 54, # Object.values
'Chrome Mobile': 54,
'Firefox': 47, # Object.values
'Firefox Mobile': 47,
'Opera': 41, # Object.values
'Edge': 14, # Array.prototype.includes added in 14
'Safari': 10, # Many features not supported by 9
}
version = family_min_version.get(useragent.browser.family)
return version and useragent.browser.version[0] >= version

0 comments on commit 2588863

Please sign in to comment.