Add beef.browser.isA() to detect Avant Browser

Fixes issue #774
This commit is contained in:
bcoles
2013-06-02 03:14:29 +09:30
parent 9e17958268
commit 3c5b68e112

View File

@@ -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()