Add support for Firefox 28
This commit is contained in:
@@ -317,12 +317,20 @@ beef.browser = {
|
||||
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 FF28
|
||||
* @example: beef.browser.isFF28()
|
||||
*/
|
||||
isFF28: 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\/28./) != 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() || this.isFF27();
|
||||
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() || this.isFF28();
|
||||
},
|
||||
|
||||
/**
|
||||
@@ -830,6 +838,7 @@ beef.browser = {
|
||||
FF25: this.isFF25(), // Firefox 25
|
||||
FF26: this.isFF26(), // Firefox 26
|
||||
FF26: this.isFF27(), // Firefox 27
|
||||
FF26: this.isFF28(), // Firefox 28
|
||||
FF: this.isFF(), // Firefox any version
|
||||
|
||||
IE6: this.isIE6(), // Internet Explorer 6
|
||||
@@ -1142,6 +1151,10 @@ beef.browser = {
|
||||
return '27'
|
||||
}
|
||||
; // Firefox 27
|
||||
if (this.isFF28()) {
|
||||
return '28'
|
||||
}
|
||||
; // Firefox 28
|
||||
|
||||
if (this.isIE6()) {
|
||||
return '6'
|
||||
|
||||
Reference in New Issue
Block a user