X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/d74dd80540824b86fc93fc9573f412bbbcaefbc4..b70770f8ddf8ea97ad1985755c0069c968be0b74:/config/initializers/browser.rb 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