window.controllers was renamed to window.Controllers in Firefox 29

useragent.isGecko was false on Firefox 29
This commit is contained in:
hitode909 2014-06-05 14:10:25 +09:00
commit 84abfa5ff8

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;