ipad detection added

git-svn-id: https://beef.googlecode.com/svn/trunk@752 b87d56ec-f9c0-11de-8c8a-61c5e9addfc9
This commit is contained in:
wade@bindshell.net
2011-02-20 11:58:11 +00:00
parent 0dac182838
commit 2c0fb8358c

View File

@@ -62,6 +62,10 @@ beef.os = {
return (this.ua.indexOf('iPhone') != -1) ? true : false;
},
isIpad: function() {
return (this.ua.indexOf('iPad') != -1) ? true : false;
},
isQNX: function() {
return (this.ua.indexOf('QNX')) ? true : false;
},
@@ -90,6 +94,8 @@ beef.os = {
//iPhone
if (this.isIphone()) return 'iPhone';
//iPad
if (this.isIpad()) return 'iPad';
//macintosh
if(this.isMacintosh()) {