mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-01-31 19:54:35 +03:00
Remove console logs in production
This commit is contained in:
parent
bc3234253c
commit
6e117be436
|
@ -24,7 +24,7 @@
|
||||||
"react/jsx-quotes": 0,
|
"react/jsx-quotes": 0,
|
||||||
"eol-last": 0,
|
"eol-last": 0,
|
||||||
"no-unused-vars": 0,
|
"no-unused-vars": 0,
|
||||||
"no-console": 0,
|
"no-console": 1,
|
||||||
"comma-dangle": 0
|
"comma-dangle": 0
|
||||||
},
|
},
|
||||||
"plugins": [
|
"plugins": [
|
||||||
|
|
|
@ -39,7 +39,9 @@ export default class StackTraceTab extends Component {
|
||||||
|
|
||||||
getStackFrames(deserializedError)
|
getStackFrames(deserializedError)
|
||||||
.then(stackFrames => {
|
.then(stackFrames => {
|
||||||
console.log('Stack frames: ', stackFrames);
|
/* eslint-disable no-console */
|
||||||
|
if (process.env.NODE_ENV === 'development') console.log('Stack frames: ', stackFrames);
|
||||||
|
/* eslint-enable no-console */
|
||||||
this.setState({stackFrames, currentError: deserializedError});
|
this.setState({stackFrames, currentError: deserializedError});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -86,7 +86,7 @@ function generateAnsiHTML(txt: string): string {
|
||||||
result += '<span style="color: #' + color + ';">' + part + '</span>';
|
result += '<span style="color: #' + color + ';">' + part + '</span>';
|
||||||
} else {
|
} else {
|
||||||
if (fg != null) {
|
if (fg != null) {
|
||||||
console.log('Missing color mapping: ', fg);
|
console.log('Missing color mapping:', fg); // eslint-disable-line no-console
|
||||||
}
|
}
|
||||||
result += '<span>' + part + '</span>';
|
result += '<span>' + part + '</span>';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user