Merge pull request #1994 from hitode909/fix-is-gecko

useragent.isGecko is false on Firefox 29
This commit is contained in:
Harutyun Amirjanyan 2014-06-16 15:05:39 +04:00
commit 8db9dc255a

View file

@ -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;