diff --git a/core/main/client/browser.js b/core/main/client/browser.js index 2d32c686e..a380d29a0 100644 --- a/core/main/client/browser.js +++ b/core/main/client/browser.js @@ -27,6 +27,14 @@ beef.browser = { 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. * @example: beef.browser.isIE6()