Merge pull request #1994 from hitode909/fix-is-gecko
useragent.isGecko is false on Firefox 29
This commit is contained in:
commit
8db9dc255a
1 changed files with 1 additions and 1 deletions
|
|
@ -82,7 +82,7 @@ exports.isIE =
|
|||
exports.isOldIE = exports.isIE && exports.isIE < 9;
|
||||
|
||||
// Is this Firefox or related?
|
||||
exports.isGecko = exports.isMozilla = window.controllers && window.navigator.product === "Gecko";
|
||||
exports.isGecko = exports.isMozilla = (window.Controllers || window.controllers) && window.navigator.product === "Gecko";
|
||||
|
||||
// oldGecko == rev < 2.0
|
||||
exports.isOldGecko = exports.isGecko && parseInt((ua.match(/rv\:(\d+)/)||[])[1], 10) < 4;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue