Skip to content

Commit

Permalink
Fix(exporter): fix #2921 IE detection for higher versions - untested
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulL1 committed Mar 15, 2015
1 parent 5b6bcf5 commit be5c0ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/features/exporter/js/exporter.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
},


Expand Down

0 comments on commit be5c0ba

Please sign in to comment.