Skip to content

Commit

Permalink
Require FF43 for latest js (#10941)
Browse files Browse the repository at this point in the history
* Require FF43 for latest js

`Array.prototype.includes` added in Firefox 43

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/includes

* Update __init__.py
  • Loading branch information
andrey-git authored and balloob committed Dec 6, 2017
1 parent ddec566 commit 87fe674
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions homeassistant/components/frontend/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -583,9 +583,9 @@ def _is_latest(js_option, request):

family_min_version = {
'Chrome': 50, # Probably can reduce this
'Firefox': 41, # Destructuring added in 41
'Firefox': 43, # Array.protopype.includes added in 43
'Opera': 40, # Probably can reduce this
'Edge': 14, # Maybe can reduce this
'Edge': 14, # Array.protopype.includes added in 14
'Safari': 10, # many features not supported by 9
}
version = family_min_version.get(useragent.browser.family)
Expand Down

0 comments on commit 87fe674

Please sign in to comment.