User Agent class doesn't know Chrome - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: User Agent class doesn't know Chrome (/showthread.php?tid=32943) |
User Agent class doesn't know Chrome - El Forum - 08-10-2010 [eluser]Chris Williams[/eluser] Detecting the browser on Google Chrome for Mac returns 'Safari' Code: echo $this->agent->browser(); They both contain "Safari" in the agent string, however, Chrome is also a part of the string as well. Chrome for Mac Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_4; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.125 Safari/533.4 Safari for Mac Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_4; en-us) AppleWebKit/533.16 (KHTML, like Gecko) Version/5.0 Safari/533.16 User Agent class doesn't know Chrome - El Forum - 08-10-2010 [eluser]gyo[/eluser] Yep, but you can download the latest user_agents file from the BitBucket repository, which is updated! |