Skip to content

Instantly share code, notes, and snippets.

@felipepodesta
Forked from Phantomical/disable_console.js
Created January 26, 2018 21:23
Show Gist options
  • Save felipepodesta/21846e4cae5b8a05a092e7868abe438d to your computer and use it in GitHub Desktop.
Save felipepodesta/21846e4cae5b8a05a092e7868abe438d to your computer and use it in GitHub Desktop.
Disable console output in javascript
window.console = {
log: function(msg) { },
warn: function(msg) { },
error: function(msg) { },
info: function(msg) { }
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment