improving mac os detection

git-svn-id: https://beef.googlecode.com/svn/trunk@561 b87d56ec-f9c0-11de-8c8a-61c5e9addfc9
This commit is contained in:
mosse.benjamin
2010-11-22 04:50:13 +00:00
parent 4c0a5bab80
commit cb4418f2e0

View File

@@ -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';