Browse Source

Modal: Fixes IE detection, IE11 now reports navigator.appName as Netscape and not Microsoft Internet Explorer LOL

pull/471/head
jlukic 11 years ago
parent
commit
00a9209438
1 changed files with 2 additions and 2 deletions
  1. 4
      src/modules/modal.js

4
src/modules/modal.js

@ -414,8 +414,8 @@ $.fn.modal = function(parameters) {
return $module.hasClass(className.active);
},
modernBrowser: function() {
// lol
return (navigator.appName !== 'Microsoft Internet Explorer');
// appName for IE11 reports 'Netscape' can no longer use
return !(window.ActiveXObject || "ActiveXObject" in window);
}
},

Loading…
Cancel
Save