Fixes issue 483

git-svn-id: https://beef.googlecode.com/svn/trunk@1263 b87d56ec-f9c0-11de-8c8a-61c5e9addfc9
This commit is contained in:
bcoles@gmail.com
2011-09-08 11:39:18 +00:00
parent d110c99a61
commit 515dbefacf

View File

@@ -86,19 +86,19 @@ beef.os = {
},
isAndroid: function() {
return (this.ua.indexOf('Android')) ? true : false;
return (this.ua.match('Android')) ? true : false;
},
isBlackBerry: function() {
return (this.ua.indexOf('BlackBerry')) ? true : false;
return (this.ua.match('BlackBerry')) ? true : false;
},
isQNX: function() {
return (this.ua.indexOf('QNX')) ? true : false;
return (this.ua.match('QNX')) ? true : false;
},
isBeOS: function() {
return (this.ua.indexOf('BeOS')) ? true : false;
return (this.ua.match('BeOS')) ? true : false;
},
getName: function() {