From c2dbc50d00cc025a042eb2bb046243846dcf9e34 Mon Sep 17 00:00:00 2001 From: bcoles Date: Thu, 10 Jan 2013 08:44:50 +1030 Subject: [PATCH] Added support for Firefox 18 --- core/main/client/browser.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/core/main/client/browser.js b/core/main/client/browser.js index 6e74ed44a..0f1029b26 100644 --- a/core/main/client/browser.js +++ b/core/main/client/browser.js @@ -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