Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
devpopol
· 16y ago · 0 comments
if(!window.console){window.console = {};} if(!(toString(window.console.log) === '[object Function]')) {window.console.log = function(){};}
there, fixed..
Comments
[–]
jmtulloss
16y ago
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.