Return to Snippet

Revision: 58043
at June 22, 2012 05:50 by chrisaiv

Initial Code
//Get the user agent
var userAgent = req.headers["user-agent"];

if( userAgent.match(/(Large Screen|GoogleTV|Boxee)/i) ){
//Do something

Initial URL

Initial Description
Simple way to detect GoogleTV or Boxee browsers using Javascript.

Initial Title
Javascript: User-agent detect GoogleTV or Boxee

Initial Tags

Initial Language