improving mac os detection
git-svn-id: https://beef.googlecode.com/svn/trunk@561 b87d56ec-f9c0-11de-8c8a-61c5e9addfc9
This commit is contained in:
@@ -84,7 +84,12 @@ beef.os = {
|
||||
if(this.isSunOS()) return 'Sun OS';
|
||||
|
||||
//macintosh
|
||||
if(this.isMacintosh()) return 'Macintosh';
|
||||
if(this.isMacintosh()) {
|
||||
if((typeof navigator.oscpu != 'undefined') && (navigator.oscpu.indexOf('Mac OS')!=-1))
|
||||
return navigator.oscpu;
|
||||
|
||||
return 'Macintosh';
|
||||
}
|
||||
|
||||
//others
|
||||
if(this.isQNX()) return 'QNX';
|
||||
|
||||
Reference in New Issue
Block a user