Skip to content

Instantly share code, notes, and snippets.

@jensgro jensgro/ie-detection
Created Jan 27, 2014

Embed
What would you like to do?
// bringt $.browser zum modernen jQuery zurück
// brings back $.browser to modern jQuery
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;
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.