Team:Sevilla/Templates/general
From 2011.igem.org
(Difference between revisions)
Line 226: | Line 226: | ||
version: (userAgent.match( /.+(?:rv|it|ra|ie|me)[\/: ]([\d.]+)/ ) || [])[1], | version: (userAgent.match( /.+(?:rv|it|ra|ie|me)[\/: ]([\d.]+)/ ) || [])[1], | ||
chrome: /chrome/.test( userAgent ), | chrome: /chrome/.test( userAgent ), | ||
- | safari: /webkit/.test( userAgent ) & | + | safari: /webkit/.test( userAgent ) && !/chrome/.test( userAgent ), |
opera: /opera/.test( userAgent ), | opera: /opera/.test( userAgent ), | ||
- | msie: /msie/.test( userAgent ) & | + | msie: /msie/.test( userAgent ) && !/opera/.test( userAgent ), |
- | mozilla: /mozilla/.test( userAgent ) & | + | mozilla: /mozilla/.test( userAgent ) && !/(compatible|webkit)/.test( userAgent ) |
}; | }; | ||
Revision as of 10:01, 5 August 2011