We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ddc665 commit 0c6f1f5Copy full SHA for 0c6f1f5
src/ConsoleBehavior.js
@@ -1,10 +1,10 @@
1
//ConsoleBehavior.js
2
3
function ConsoleBehavior() {
4
- // If hideConsole is undefined, proceed as true
5
- const hideConsole = process.env.REACT_APP_DISPLAY_CONSOLE;
+ // If displayConsole is undefined, proceed as true
+ const displayConsole = process.env.REACT_APP_DISPLAY_CONSOLE;
6
7
- if (hideConsole === 'false') {
+ if (displayConsole === 'false') {
8
Object.keys(console).forEach(method => {
9
if (typeof console[method] === 'function') {
10
console[method] = () => { };
0 commit comments