There was an error while loading. Please reload this page.
1 parent c872d6c commit 31a7d80Copy full SHA for 31a7d80
lib/browser.rb
@@ -313,7 +313,7 @@ def chrome?
313
314
# Detect if browser is Internet Explorer.
315
def ie?
316
- !!(ua =~ /MSIE/ && ua !~ /Opera/ && ua !~ /MSOffice/)
+ !!(ua =~ /MSIE/ && ua !~ /Opera/ && ua !~ /MSOffice/ && ua !~ /Outlook/)
317
end
318
319
# Detect if browser is Internet Explorer 6.
@@ -367,11 +367,11 @@ def tablet?
367
368
369
def outlook2010?
370
- !!(ua =~ /MSOffice 14/)
+ !!(ua =~ /MSOffice 14/ || ua =~ /Microsoft Outlook 14/)
371
372
373
def outlook2007?
374
- !!(ua =~ /MSOffice 12/)
+ !!(ua =~ /MSOffice 12/ || ua =~ /Microsoft Outlook 12/)
375
376
377
def thunderbird?
0 commit comments