X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/c18e679be36b95fbf86a1dd5293d74ab70f6db4f..4919fe08ed78ca02e7bbbeb8b3728aad6bfe746b:/config/initializers/browser.rb diff --git a/config/initializers/browser.rb b/config/initializers/browser.rb index 167fd293c..ff0747d07 100644 --- a/config/initializers/browser.rb +++ b/config/initializers/browser.rb @@ -2,15 +2,19 @@ module OpenStreetMap module Browser module Features def html5? - webkit? || firefox? || safari? || edge? || ie?(">8") + chrome? || firefox? || safari? || edge? || ie?(">8") || generic_webkit? end def es5? - webkit? || firefox? || safari? || edge? || ie?(">8") + chrome? || firefox? || safari? || edge? || ie?(">8") || generic_webkit? end def es6? - webkit? || firefox? || safari? || edge? + chrome?(">44") || firefox?(">24") || safari?(">7") || edge?(">11") || generic_webkit? + end + + def generic_webkit? + webkit? && !chrome? && !safari? && !edge? && !phantom_js? end end end