diff --git a/app/scripts/disable-console.js b/app/scripts/disable-console.js index bb7ce8e24..7416b36f5 100644 --- a/app/scripts/disable-console.js +++ b/app/scripts/disable-console.js @@ -4,6 +4,10 @@ if ( !(typeof process !== 'undefined' && process.env.METAMASK_DEBUG) && typeof console !== undefined ) { - console.log = () => undefined - console.info = () => undefined + console.log = noop + console.info = noop +} + +function noop() { + return undefined }