detect chrome
This commit is contained in:
parent
6d40f616d5
commit
606d1bdbaf
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue