detect chrome

This commit is contained in:
Fabian Jakobs 2011-08-03 13:00:17 +02:00
commit 606d1bdbaf

View file

@ -64,6 +64,8 @@ exports.isOpera = window.opera && Object.prototype.toString.call(window.opera) =
/** Is the user using a browser that identifies itself as WebKit */
exports.isWebKit = parseFloat(ua.split("WebKit/")[1]) || undefined;
exports.isChrome = parseFloat(ua.split(" Chrome/")[1]) || undefined;
exports.isAIR = ua.indexOf("AdobeAIR") >= 0;
exports.isIPad = ua.indexOf("iPad") >= 0;