The browser.version check was causing browsers with undetected useragents to die. This, at least, makes it fail gracefully.
This commit is contained in:
parent
b9a8e65576
commit
b0cf71332a
2
src/jquery/jquery.js
vendored
2
src/jquery/jquery.js
vendored
|
@ -1811,7 +1811,7 @@ new function() {
|
|||
|
||||
// Figure out what browser is being used
|
||||
jQuery.browser = {
|
||||
version: b.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)[1],
|
||||
version: (b.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/) || [])[1],
|
||||
safari: /webkit/.test(b),
|
||||
opera: /opera/.test(b),
|
||||
msie: /msie/.test(b) && !/opera/.test(b),
|
||||
|
|
Loading…
Reference in a new issue