From 2c0fb8358c38c16ddfdcc8b802245bd7778ed2ee Mon Sep 17 00:00:00 2001 From: "wade@bindshell.net" Date: Sun, 20 Feb 2011 11:58:11 +0000 Subject: [PATCH] ipad detection added git-svn-id: https://beef.googlecode.com/svn/trunk@752 b87d56ec-f9c0-11de-8c8a-61c5e9addfc9 --- modules/beefjs/os.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/beefjs/os.js b/modules/beefjs/os.js index f7efd172f..bd1113ba1 100644 --- a/modules/beefjs/os.js +++ b/modules/beefjs/os.js @@ -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()) {