/ Published in: JavaScript
Simple way to detect GoogleTV or Boxee browsers using Javascript.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
//Get the user agent var userAgent = req.headers["user-agent"]; if( userAgent.match(/(Large Screen|GoogleTV|Boxee)/i) ){ //Do something }