Remove useless code and rebuild bundle file

This commit is contained in:
Chris 2020-06-13 15:24:28 -04:00
parent 35933b88c4
commit 53744be44c
3 changed files with 7 additions and 8 deletions

View File

@ -28,6 +28,7 @@ module.exports = {
"react/destructuring-assignment": 0,
"react/jsx-curly-spacing": [2, { "when": "always" }],
"react/prop-types": 0,
"react/no-access-state-in-setstate": 0,
"react/button-has-type": 0,
"max-len": [2, { code: 120 }],
"operator-linebreak": [2, "after"],

File diff suppressed because one or more lines are too long

View File

@ -42,7 +42,6 @@ class WebUI extends Component {
this.props.appendMonitorMessage(MonitorTools.createTextDiv(
`Attempting to connect to MultiClient (attempt ${this.state.connectionAttempts + 1})...`,
));
// eslint-disable-next-line react/no-access-state-in-setstate
this.setState({ connectionAttempts: this.state.connectionAttempts + 1 }, () => {
if (this.state.connectionAttempts >= 20) {
this.props.appendMonitorMessage(MonitorTools.createTextDiv(
@ -90,7 +89,6 @@ class WebUI extends Component {
this.props.appendMonitorMessage(MonitorTools.createTextDiv('Connected to MultiClient.'));
this.setState({ connectionAttempts: 0 });
};
this.setState({ connectionInProgress: false });
});
};