Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix for isGecko detection

  • Loading branch information...
commit 616b6ec5054a3f3910c933b85cadf3c162f518a3 1 parent c00b7a0
Gavin Lynch authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/js/me-featuredetection.js
2  src/js/me-featuredetection.js
View
@@ -19,7 +19,7 @@ mejs.MediaFeatures = {
t.isIE = (nav.appName.toLowerCase().indexOf("microsoft") != -1);
t.isChrome = (ua.match(/chrome/gi) !== null);
t.isFirefox = (ua.match(/firefox/gi) !== null);
- t.isGecko = (ua.match(/gecko/gi) !== null);
+ t.isGecko = (ua.match(/gecko/gi) !== null) && !t.isChrome;
t.isWebkit = (ua.match(/webkit/gi) !== null);
t.hasTouch = ('ontouchstart' in window);
Please sign in to comment.
Something went wrong with that request. Please try again.