7 ms·
One gotcha I've noticed a lot is when people forget to check for Console object. Or they might do this (doesn't work): if(!console) instead of if(!window
by alexyim 16y ago
One gotcha I've noticed a lot is when people forget to check for Console object. Or they might do this (doesn't work):
if(!console)
instead of
if(!window.console) or if( typeof console === 'undefined' )
- amadeus 16y agoI have to plug my console wrapper which takes care of problems like these :) https://github.com/amadeus/dbg https://github.com/amadeus/dbg