From 3c5b68e112cd18bcdf5d15d29d5de9a31da891b7 Mon Sep 17 00:00:00 2001 From: bcoles Date: Sun, 2 Jun 2013 03:14:29 +0930 Subject: [PATCH] Add `beef.browser.isA()` to detect Avant Browser Fixes issue #774 --- core/main/client/browser.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/core/main/client/browser.js b/core/main/client/browser.js index 4efc5d63c..2d32c686e 100644 --- a/core/main/client/browser.js +++ b/core/main/client/browser.js @@ -19,6 +19,14 @@ beef.browser = { return navigator.userAgent; }, + /** + * Returns true if Avant Browser. + * @example: beef.browser.isA() + */ + isA:function () { + return window.navigator.userAgent.match(/Avant TriCore/) != null; + }, + /** * Returns true if IE6. * @example: beef.browser.isIE6()