From 8e2f0e9a4486673064a14a7d8b919e03bb6abb69 Mon Sep 17 00:00:00 2001 From: bcoles Date: Wed, 18 Jul 2012 22:03:24 +0930 Subject: [PATCH] Added support for Firefox 14 --- 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 f985874f1..cf1a5c174 100644 --- a/core/main/client/browser.js +++ b/core/main/client/browser.js @@ -180,12 +180,20 @@ beef.browser = { return !!window.history.replaceState && window.navigator.userAgent.match(/Firefox\/13\./) != null; }, + /** + * Returns true if FF14 + * @example: beef.browser.isFF14() + */ + isFF14: function() { + return !!window.history.replaceState && window.navigator.userAgent.match(/Firefox\/14\./) != 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(); + 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(); }, /** @@ -437,6 +445,7 @@ beef.browser = { FF11: this.isFF11(), // Firefox 11 FF12: this.isFF12(), // Firefox 12 FF13: this.isFF13(), // Firefox 13 + FF14: this.isFF14(), // Firefox 14 FF: this.isFF(), // Firefox any version IE6: this.isIE6(), // Internet Explorer 6 @@ -497,6 +506,7 @@ beef.browser = { if (this.isFF11()) { return '11' }; // Firefox 11 if (this.isFF12()) { return '12' }; // Firefox 12 if (this.isFF13()) { return '13' }; // Firefox 13 + if (this.isFF14()) { return '14' }; // Firefox 14 if (this.isIE6()) { return '6' }; // Internet Explorer 6 if (this.isIE7()) { return '7' }; // Internet Explorer 7