mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 20:27:08 +00:00
Require FF43 for latest js (#10941)
* 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
This commit is contained in:
parent
ddec566e10
commit
87fe674c70
@ -583,9 +583,9 @@ def _is_latest(js_option, request):
|
|||||||
|
|
||||||
family_min_version = {
|
family_min_version = {
|
||||||
'Chrome': 50, # Probably can reduce this
|
'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
|
'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
|
'Safari': 10, # many features not supported by 9
|
||||||
}
|
}
|
||||||
version = family_min_version.get(useragent.browser.family)
|
version = family_min_version.get(useragent.browser.family)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user