brighthas/browser-type — pull request #1 by jamischarles (2013-09-11 20:46:15+00:00)
Title: Safer check for window so node doesn't explode

if(window) causes an error in node since the var doesn't exist. Using this method is safer and prevents node from exploding.