Unify the syntax in browser.rb

This commit is contained in:
gregoirenovel 2018-08-21 18:24:49 +02:00
parent fad18d6173
commit 3d14ae418f

View file

@ -1,7 +1,7 @@
# See .babelrc
Browser.modern_rules.clear
Browser.modern_rules << -> b { b.chrome? && b.version.to_i >= 50 }
Browser.modern_rules << -> b { b.ie?([">=11"]) }
Browser.modern_rules << -> b { b.ie? && b.version.to_i >= 11 && !b.compatibility_view? }
Browser.modern_rules << -> b { b.edge? }
Browser.modern_rules << -> b { b.firefox? && b.version.to_i >= 50 }
Browser.modern_rules << -> b { b.opera? && b.version.to_i >= 40 }