suppress console errors


/ Published in: JavaScript
Save to your folder(s)



Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.