Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

fix Browser.is.Gecko to ensure not IE #237

Merged
merged 1 commit into from

2 participants

@danshultz

This better detects Gecko based on recommendations from Mozilla.

@joseph joseph merged commit 174a253 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Feb 14, 2014
  1. @danshultz
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/compat/browser.js
View
2  src/compat/browser.js
@@ -19,7 +19,7 @@ Monocle.Browser.is = {
),
Opera: Monocle.Browser.uaMatch('Opera'),
WebKit: Monocle.Browser.uaMatch(/Apple\s?WebKit/),
- Gecko: Monocle.Browser.uaMatch('Gecko') && !Monocle.Browser.uaMatch('KHTML'),
+ Gecko: Monocle.Browser.uaMatch(/Gecko\//),
MobileSafari: Monocle.Browser.uaMatch(/OS \d_.*AppleWebKit.*Mobile/)
}
Something went wrong with that request. Please try again.