diff --git a/core/main/client/browser.js b/core/main/client/browser.js index e5c9b33c6..58adfef3a 100644 --- a/core/main/client/browser.js +++ b/core/main/client/browser.js @@ -300,12 +300,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\/26./) != null; }, + /** + * Returns true if FF27 + * @example: beef.browser.isFF27() + */ + isFF27:function () { + return !!window.devicePixelRatio && !!window.history.replaceState && typeof navigator.mozGetUserMedia != "undefined" && (typeof window.crypto != "undefined" && typeof window.crypto.getRandomValues != "undefined") && typeof Math.hypot == 'function' && window.navigator.userAgent.match(/Firefox\/27./) != 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() || this.isFF26(); + 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() || this.isFF27(); }, /** @@ -794,6 +802,7 @@ beef.browser = { FF24:this.isFF24(), // Firefox 24 FF25:this.isFF25(), // Firefox 25 FF26:this.isFF26(), // Firefox 26 + FF26:this.isFF27(), // Firefox 27 FF: this.isFF(), // Firefox any version IE6:this.isIE6(), // Internet Explorer 6 @@ -1093,7 +1102,10 @@ beef.browser = { return '26' } ; // Firefox 26 - + if (this.isFF27()) { + return '27' + } + ; // Firefox 27 if (this.isIE6()) { return '6'