Skip to content

Commit

Permalink
Add chrome os detection
Browse files Browse the repository at this point in the history
  • Loading branch information
tategakibunko committed Jan 15, 2017
1 parent bcd8abb commit aac1ac7
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 8 deletions.
7 changes: 7 additions & 0 deletions dist/nehan.js
Original file line number Diff line number Diff line change
Expand Up @@ -565,6 565,13 @@ Nehan.Client = (function(){
Client.prototype.isMacintosh = function(){
return this.userAgent.indexOf("macintosh") >= 0;
};
/**
@memberof Nehan.Client
@return {boolean}
*/
Client.prototype.isChromeOS = function(){
return this.userAgent.indexOf("cros") >= 0;
};
/**
@memberof Nehan.Client
@return {boolean}
Expand Down
Loading

0 comments on commit aac1ac7

Please sign in to comment.