diff --git a/core/main/client/browser.js b/core/main/client/browser.js index 56da1e1eb..ee957b252 100644 --- a/core/main/client/browser.js +++ b/core/main/client/browser.js @@ -292,12 +292,20 @@ beef.browser = { return !!window.devicePixelRatio && !!window.history.replaceState && typeof navigator.mozGetUserMedia != "undefined" && (typeof window.crypto != "undefined" && typeof window.crypto.getRandomValues != "undefined") && window.navigator.userAgent.match(/Firefox\/25\./) != null; }, + /** + * Returns true if FF26 + * @example: beef.browser.isFF26() + */ + isFF26:function () { + return !!window.devicePixelRatio && !!window.history.replaceState && typeof navigator.mozGetUserMedia != "undefined" && (typeof window.crypto != "undefined" && typeof window.crypto.getRandomValues != "undefined") && window.navigator.userAgent.match(/Firefox\/26./) != null; + }, + /** * Returns true if FF. * @example: beef.browser.isFF() */ isFF:function () { - return this.isFF2() || this.isFF3() || this.isFF3_5() || this.isFF3_6() || this.isFF4() || this.isFF5() || this.isFF6() || this.isFF7() || this.isFF8() || this.isFF9() || this.isFF10() || this.isFF11() || this.isFF12() || this.isFF13() || this.isFF14() || this.isFF15() || this.isFF16() || this.isFF17() || this.isFF18() || this.isFF19() || this.isFF20() || this.isFF21() || this.isFF22() || this.isFF23() || this.isFF24() || this.isFF25(); + return this.isFF2() || this.isFF3() || this.isFF3_5() || this.isFF3_6() || this.isFF4() || this.isFF5() || this.isFF6() || this.isFF7() || this.isFF8() || this.isFF9() || this.isFF10() || this.isFF11() || this.isFF12() || this.isFF13() || this.isFF14() || this.isFF15() || this.isFF16() || this.isFF17() || this.isFF18() || this.isFF19() || this.isFF20() || this.isFF21() || this.isFF22() || this.isFF23() || this.isFF24() || this.isFF25() || this.isFF26(); }, /** @@ -785,7 +793,8 @@ beef.browser = { FF23:this.isFF23(), // Firefox 23 FF24:this.isFF24(), // Firefox 24 FF25:this.isFF25(), // Firefox 25 - FF:this.isFF(), // Firefox any version + FF26:this.isFF26(), // Firefox 26 + FF: this.isFF(), // Firefox any version IE6:this.isIE6(), // Internet Explorer 6 IE7:this.isIE7(), // Internet Explorer 7 @@ -798,13 +807,13 @@ beef.browser = { O9_60:this.isO9_60(), // Opera 9.60 through 9.64 O10:this.isO10(), // Opera 10.xx O11:this.isO11(), // Opera 11.xx - O12:this.isO12(), // Opera 11.xx - O:this.isO(), // Opera any version + O12:this.isO12(), // Opera 12.xx + O: this.isO(), // Opera any version S4:this.isS4(), // Safari 4.xx S5:this.isS5(), // Safari 5.xx S6:this.isS6(), // Safari 6.x - S:this.isS() // Safari any version + S: this.isS() // Safari any version } }, @@ -1080,6 +1089,11 @@ beef.browser = { return '25' } ; // Firefox 25 + if (this.isFF26()) { + return '26' + } + ; // Firefox 26 + if (this.isIE6()) { return '6'