From 515dbefacfefc41af1fee4fec7fde2c3c84acd8b Mon Sep 17 00:00:00 2001 From: "bcoles@gmail.com" Date: Thu, 8 Sep 2011 11:39:18 +0000 Subject: [PATCH] Fixes issue 483 git-svn-id: https://beef.googlecode.com/svn/trunk@1263 b87d56ec-f9c0-11de-8c8a-61c5e9addfc9 --- core/main/client/os.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/main/client/os.js b/core/main/client/os.js index 90c39f58c..2a6e865b2 100644 --- a/core/main/client/os.js +++ b/core/main/client/os.js @@ -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() {