mirror of
https://github.com/home-assistant/core.git
synced 2025-06-04 13:17:06 +00:00
Fix detection of mobile browsers (#12075)
* Fix detection of mobile browsers * Move break * Add Mobile browsers to list `Mobile Safari` is covered by iOS and `Opera Mini` does not support es6 ... And Edge doesn't even work on desktop for me...
This commit is contained in:
parent
e11e066684
commit
764343dbf8
@ -586,7 +586,9 @@ def _is_latest(js_option, request):
|
||||
|
||||
family_min_version = {
|
||||
'Chrome': 50, # Probably can reduce this
|
||||
'Chrome Mobile': 50,
|
||||
'Firefox': 43, # Array.prototype.includes added in 43
|
||||
'Firefox Mobile': 43,
|
||||
'Opera': 40, # Probably can reduce this
|
||||
'Edge': 14, # Array.prototype.includes added in 14
|
||||
'Safari': 10, # many features not supported by 9
|
||||
|
Loading…
x
Reference in New Issue
Block a user