From df1565883b7cd59db31766a22da0814074262ddf Mon Sep 17 00:00:00 2001 From: "scotty.b.brown@gmail.com" Date: Tue, 9 Aug 2011 09:39:00 +0000 Subject: [PATCH] (Fixes issue 433) git-svn-id: https://beef.googlecode.com/svn/trunk@1173 b87d56ec-f9c0-11de-8c8a-61c5e9addfc9 --- 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 6cd1202b1..3072482da 100644 --- a/core/main/client/browser.js +++ b/core/main/client/browser.js @@ -197,13 +197,21 @@ beef.browser = { isC12: function() { return (!!window.chrome && !window.webkitPerformance) && ((parseInt(window.navigator.appVersion.match(/Chrome\/(\d+)\./)[1], 10)==12)?true:false); }, + + /** + * Returns true if Chrome 13. + * @example: beef.browser.isC13() + */ + isC13: function() { + return (!!window.chrome && !window.webkitPerformance) && ((parseInt(window.navigator.appVersion.match(/Chrome\/(\d+)\./)[1], 10)==13)?true:false); + }, /** * Returns true if Chrome. * @example: beef.browser.isC() */ isC: function() { - return this.isC5() || this.isC6() || this.isC7() || this.isC8() || this.isC9() || this.isC10() || this.isC11() || this.isC12(); + return this.isC5() || this.isC6() || this.isC7() || this.isC8() || this.isC9() || this.isC10() || this.isC11() || this.isC12() || this.isC13(); }, /** @@ -263,6 +271,7 @@ beef.browser = { C10: this.isC10(), // Chrome 10 C11: this.isC11(), // Chrome 11 C12: this.isC12(), // Chrome 12 + C13: this.isC13(), // Chrome 13 C: this.isC(), // Chrome any version FF2: this.isFF2(), // Firefox 2 FF3: this.isFF3(), // Firefox 3 @@ -301,6 +310,7 @@ beef.browser = { if (this.isC10()) { return '10' }; // Chrome 10 if (this.isC11()) { return '11' }; // Chrome 11 if (this.isC12()) { return '12' }; // Chrome 12 + if (this.isC13()) { return '13' }; // Chrome 13 if (this.isFF2()) { return '2' }; // Firefox 2 if (this.isFF3()) { return '3' }; // Firefox 3 if (this.isFF35()) { return '3.5'}; // Firefox 3.5