useragent.js thinks firefox 11 is old :-)
This commit is contained in:
parent
0d696cb258
commit
be8cacfcc3
1 changed files with 1 additions and 1 deletions
|
|
@ -60,7 +60,7 @@ exports.isOldIE = exports.isIE && exports.isIE < 9;
|
|||
exports.isGecko = exports.isMozilla = window.controllers && window.navigator.product === "Gecko";
|
||||
|
||||
/** oldGecko == rev < 2.0 **/
|
||||
exports.isOldGecko = exports.isGecko && /rv\:1/.test(navigator.userAgent);
|
||||
exports.isOldGecko = exports.isGecko && parseInt((navigator.userAgent.match(/rv\:(\d+)/)||[])[1]) < 4;
|
||||
|
||||
/** Is this Opera */
|
||||
exports.isOpera = window.opera && Object.prototype.toString.call(window.opera) == "[object Opera]";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue