Hacker Newsnew | past | comments | ask | show | jobs | submit | devpopol's commentslogin

if(!window.console){window.console = {};} if(!(toString(window.console.log) === '[object Function]')) {window.console.log = function(){};}

there, fixed..


This won't work in node. That's not a huge deal, but it's pretty simple to come up with a cleaner solution that works in all environments.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: