browser version detection revised for opera >= 10, which was reporting itself as 9.8 due to their new policy
This commit is contained in:
parent
f14fadef73
commit
7be5ec1248
1 changed files with 2 additions and 2 deletions
|
@ -661,7 +661,7 @@ jQuery.extend({
|
|||
ret = { browser: "webkit", version: /webkit[\/ ]([\w.]+)/ };
|
||||
|
||||
} else if ( /opera/.test( ua ) ) {
|
||||
ret = { browser: "opera", version: /opera[\/ ]([\w.]+)/ };
|
||||
ret = { browser: "opera", version: /version/.test( ua ) ? /version[\/ ]([\w.]+)/ : /opera[\/ ]([\w.]+)/ };
|
||||
|
||||
} else if ( /msie/.test( ua ) ) {
|
||||
ret = { browser: "msie", version: /msie ([\w.]+)/ };
|
||||
|
|
Loading…
Reference in a new issue