mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
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 New Issue
Block a user