Posted By

joe-bbb on 12/03/09


Tagged


Versions (?)

suppress console errors


 / Published in: JavaScript
 

  1. if (typeof console == 'undefined') {
  2.  
  3. var console = {};
  4.  
  5. console.log = function(msg) {
  6.  
  7. return false;
  8.  
  9. };
  10.  
  11. }

Report this snippet  

You need to login to post a comment.