demarches-normaliennes/config/initializers/browser.rb

9 lines
489 B
Ruby
Raw Normal View History

# See .babelrc
Browser.modern_rules.clear
2018-08-21 18:21:14 +02:00
Browser.modern_rules << -> b { b.chrome? && b.version.to_i >= 50 }
2018-08-21 18:24:49 +02:00
Browser.modern_rules << -> b { b.ie? && b.version.to_i >= 11 && !b.compatibility_view? }
2018-08-21 18:30:04 +02:00
Browser.modern_rules << -> b { b.edge? && b.version.to_i >= 14 && !b.compatibility_view? }
2018-08-21 18:21:14 +02:00
Browser.modern_rules << -> b { b.firefox? && b.version.to_i >= 50 }
Browser.modern_rules << -> b { b.opera? && b.version.to_i >= 40 }
Browser.modern_rules << -> b { b.safari? && b.version.to_i >= 8 }