From c085c2d3d7f9d044e3b2967f117af180072afa1a Mon Sep 17 00:00:00 2001 From: bcoles Date: Mon, 28 Jan 2013 01:05:31 +1030 Subject: [PATCH] Add detection for IE10 Fixes issue #818 --- core/main/client/browser.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/core/main/client/browser.js b/core/main/client/browser.js index a5089585a..d5ff7c7bb 100644 --- a/core/main/client/browser.js +++ b/core/main/client/browser.js @@ -48,7 +48,7 @@ beef.browser = { * @example: beef.browser.isIE9() */ isIE9: function() { - return !!window.XMLHttpRequest && !window.chrome && !window.opera && !!document.documentMode && !!window.XDomainRequest && !!window.performance; + return !!window.XMLHttpRequest && !window.chrome && !window.opera && !!document.documentMode && !!window.XDomainRequest && !!window.performance && typeof navigator.msMaxTouchPoints === "undefined"; }, /** @@ -56,9 +56,8 @@ beef.browser = { * Returns true if IE10. * @example: beef.browser.isIE10() */ - // placeholder isIE10: function() { - return false; + return !!window.XMLHttpRequest && !window.chrome && !window.opera && !!document.documentMode && !!window.XDomainRequest && !!window.performance && typeof navigator.msMaxTouchPoints !== "undefined"; }, /**