X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/43c09d8062fc4aef4f1e0e5d3598e526a02bb288..b3797384b7a99c6d6e6d033d7f4b275baa03d3d7:/config/initializers/browser.rb diff --git a/config/initializers/browser.rb b/config/initializers/browser.rb index 167fd293c..5e8c57c74 100644 --- a/config/initializers/browser.rb +++ b/config/initializers/browser.rb @@ -1,16 +1,12 @@ module OpenStreetMap module Browser module Features - def html5? - webkit? || firefox? || safari? || edge? || ie?(">8") - end - - def es5? - webkit? || firefox? || safari? || edge? || ie?(">8") + def es6? + chrome?(">44") || firefox?(">24") || safari?(">7") || edge?(">11") || generic_webkit? end - def es6? - webkit? || firefox? || safari? || edge? + def generic_webkit? + webkit? && !chrome? && !safari? && !edge? && !phantom_js? end end end