Add Iceweasel detection in browser.js

This commit is contained in:
bcoles
2013-06-02 05:14:33 +09:30
parent 5252bea54a
commit dbabb379fb

View File

@@ -27,6 +27,14 @@ beef.browser = {
return window.navigator.userAgent.match(/Avant TriCore/) != null; return window.navigator.userAgent.match(/Avant TriCore/) != null;
}, },
/**
* Returns true if Iceweasel.
* @example: beef.browser.isI()
*/
isI:function () {
return window.navigator.userAgent.match(/Iceweasel\/\d+\.\d/) != null;
},
/** /**
* Returns true if IE6. * Returns true if IE6.
* @example: beef.browser.isIE6() * @example: beef.browser.isIE6()