This project is archived and is in readonly mode.

#898 ✓resolved
Dimitar Christoff

exception error on UA sniffing when agent seems unknown

Reported by Dimitar Christoff | April 29th, 2010 @ 12:11 PM

1.3 beta 1.1, using seomoz firefox plugin to fake user agent to google bot (string was mozilla/5.0 (compatible; googlebot/2.1; +http://www.google.com/bot.html)
), code run up to:

if (Browser.name == 'unknown'){

switch ((userAgent.toLowerCase().match(/(webkit|khtml|gecko)/) || [])[0]){

which causes an exception as it should be navigator.userAgent instead.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Shared Ticket Bins

Pages