X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/be0e33862fedbf02e52a9e126cac31dfb5775b43..06d03c8acccfadfe7e2bf441c9fbd0044e7a2fcf:/config/initializers/browser.rb?ds=inline diff --git a/config/initializers/browser.rb b/config/initializers/browser.rb index 29dc70672..5e8c57c74 100644 --- a/config/initializers/browser.rb +++ b/config/initializers/browser.rb @@ -1,20 +1,12 @@ module OpenStreetMap module Browser module Features - def html5? - chrome? || firefox? || safari? || edge? || ie?(">8") || generic_webkit? - end - - def es5? - chrome? || firefox? || safari? || edge? || ie?(">8") || generic_webkit? - end - def es6? chrome?(">44") || firefox?(">24") || safari?(">7") || edge?(">11") || generic_webkit? end def generic_webkit? - webkit? && !chrome? && !safari? && !edge? + webkit? && !chrome? && !safari? && !edge? && !phantom_js? end end end