Merge remote-tracking branch 'upstream/pull/2135'
[rails.git] / config / initializers / browser.rb
1 module OpenStreetMap
2   module Browser
3     module Features
4       def html5?
5         webkit? || firefox? || safari? || edge? || ie?(">8")
6       end
7
8       def es5?
9         webkit? || firefox? || safari? || edge? || ie?(">8")
10       end
11
12       def es6?
13         webkit? || firefox? || safari? || edge?
14       end
15     end
16   end
17 end
18
19 Browser::Base.include(OpenStreetMap::Browser::Features)