From be5c0ba1ccef1d185dfcfac394cbb2318bb65bee Mon Sep 17 00:00:00 2001 From: Paul Lambert Date: Sun, 15 Mar 2015 16:32:56 +1300 Subject: [PATCH] Fix(exporter): fix #2921 IE detection for higher versions - untested --- src/features/exporter/js/exporter.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/features/exporter/js/exporter.js b/src/features/exporter/js/exporter.js index da535b79be..16cfee8d75 100644 --- a/src/features/exporter/js/exporter.js +++ b/src/features/exporter/js/exporter.js @@ -749,8 +749,8 @@ * @description Checks whether current browser is IE and returns it's version if it is */ isIE: function () { - var myNav = navigator.userAgent.toLowerCase(); - return (myNav.indexOf('msie') !== -1) ? parseInt(myNav.split('msie')[1]) : false; + var match = navigator.userAgent.match(/(?:MSIE |Trident\/.*; rv:)(\d+)/); + return match ? parseInt(match[1]) : false; },