lib/browser_sniffer.rb in browser_sniffer-1.2.2 vs lib/browser_sniffer.rb in browser_sniffer-1.3.0

- old
+ new

@@ -22,9 +22,18 @@ def ie11? browser == :ie && major_browser_version == 11 end + # This method checks ie 11 mobile or ie11 rendering an older version in compatibility mode, in addition to `ie11?`. + # The `ie11?` method would return false in both those scenarios. + def ie11_actual? + ie11_engine = major_engine_version == 7 && engine_name == 'Trident' + ie_mobile11 = major_browser_version == 11 && browser_name == 'IEMobile' + + ie11? || ie11_engine || ie_mobile11 + end + def handheld? form_factor == :handheld end def tablet?