From a49d1351e7060bf1fa6707c7a910369722f5800e Mon Sep 17 00:00:00 2001 From: bcoles Date: Thu, 8 Dec 2011 22:34:46 +1030 Subject: [PATCH] Added check for document.documentMode so Internet Explorer 8 and 9 are no longer detected as Internet Explorer 7 when operating in compatibility mode. Fixes issue 589 --- core/main/client/browser.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/core/main/client/browser.js b/core/main/client/browser.js index 37382b89e..d2867017d 100644 --- a/core/main/client/browser.js +++ b/core/main/client/browser.js @@ -41,7 +41,7 @@ beef.browser = { * @example: beef.browser.isIE7() */ isIE7: function() { - return !!window.XMLHttpRequest && !window.chrome && !window.opera && !window.getComputedStyle && !window.globalStorage; + return !!window.XMLHttpRequest && !window.chrome && !window.opera && !window.getComputedStyle && !window.globalStorage && !document.documentMode; }, /** @@ -262,7 +262,7 @@ beef.browser = { return (!!window.chrome && !window.webkitPerformance) && ((parseInt(window.navigator.appVersion.match(/Chrome\/(\d+)\./)[1], 10)==13)?true:false); }, - /** + /** * Returns true if Chrome 14. * @example: beef.browser.isC14() */ @@ -270,7 +270,7 @@ beef.browser = { return (!!window.chrome && !window.webkitPerformance) && ((parseInt(window.navigator.appVersion.match(/Chrome\/(\d+)\./)[1], 10)==14)?true:false); }, - /** + /** * Returns true if Chrome 15. * @example: beef.browser.isC15() */ @@ -286,7 +286,7 @@ beef.browser = { return this.isC5() || this.isC6() || this.isC7() || this.isC8() || this.isC9() || this.isC10() || this.isC11() || this.isC12() || this.isC13() || this.isC14() || this.isC15(); }, - /** + /** * Returns true if Opera 9.50 through 9.52. * @example: beef.browser.isO952() */ @@ -345,7 +345,7 @@ beef.browser = { C12: this.isC12(), // Chrome 12 C13: this.isC13(), // Chrome 13 C14: this.isC14(), // Chrome 14 - C15: this.isC15(), //Chrome 15 + C15: this.isC15(), //Chrome 15 C: this.isC(), // Chrome any version FF2: this.isFF2(), // Firefox 2