Added support for Firefox 18
This commit is contained in:
@@ -213,12 +213,20 @@ beef.browser = {
|
||||
return !!window.history.replaceState && window.navigator.userAgent.match(/Firefox\/17\./) != null;
|
||||
},
|
||||
|
||||
/**
|
||||
* Returns true if FF18
|
||||
* @example: beef.browser.isFF18()
|
||||
*/
|
||||
isFF18: function() {
|
||||
return !!window.history.replaceState && window.navigator.userAgent.match(/Firefox\/18\./) != 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();
|
||||
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();
|
||||
},
|
||||
|
||||
/**
|
||||
@@ -509,6 +517,7 @@ beef.browser = {
|
||||
FF15: this.isFF15(), // Firefox 15
|
||||
FF16: this.isFF16(), // Firefox 16
|
||||
FF17: this.isFF17(), // Firefox 17
|
||||
FF18: this.isFF18(), // Firefox 18
|
||||
FF: this.isFF(), // Firefox any version
|
||||
|
||||
IE6: this.isIE6(), // Internet Explorer 6
|
||||
@@ -578,6 +587,7 @@ beef.browser = {
|
||||
if (this.isFF15()) { return '15' }; // Firefox 15
|
||||
if (this.isFF16()) { return '16' }; // Firefox 16
|
||||
if (this.isFF17()) { return '17' }; // Firefox 17
|
||||
if (this.isFF18()) { return '18' }; // Firefox 18
|
||||
|
||||
if (this.isIE6()) { return '6' }; // Internet Explorer 6
|
||||
if (this.isIE7()) { return '7' }; // Internet Explorer 7
|
||||
|
||||
Reference in New Issue
Block a user