Skip to content

Instantly share code, notes, and snippets.

@mig1098
Last active July 10, 2019 15:59
Show Gist options
  • Save mig1098/318707fd11790dff4c47532610db67fd to your computer and use it in GitHub Desktop.
Save mig1098/318707fd11790dff4c47532610db67fd to your computer and use it in GitHub Desktop.
jquery browser, Uncaught TypeError: Cannot read property 'msie' of undefined
/* Uncaught TypeError: Cannot read property 'msie' of undefined */
/* add to jquery to fix */
jQuery.browser = {};
(function () {
jQuery.browser.msie = false;
jQuery.browser.version = 0;
if (navigator.userAgent.match(/MSIE ([0-9]+)\./)) {
jQuery.browser.msie = true;
jQuery.browser.version = RegExp.$1;
}
})();
@mig1098
Copy link
Author

mig1098 commented Jul 10, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment