Remove useless code and rebuild bundle file
This commit is contained in:
parent
35933b88c4
commit
53744be44c
|
@ -28,6 +28,7 @@ module.exports = {
|
||||||
"react/destructuring-assignment": 0,
|
"react/destructuring-assignment": 0,
|
||||||
"react/jsx-curly-spacing": [2, { "when": "always" }],
|
"react/jsx-curly-spacing": [2, { "when": "always" }],
|
||||||
"react/prop-types": 0,
|
"react/prop-types": 0,
|
||||||
|
"react/no-access-state-in-setstate": 0,
|
||||||
"react/button-has-type": 0,
|
"react/button-has-type": 0,
|
||||||
"max-len": [2, { code: 120 }],
|
"max-len": [2, { code: 120 }],
|
||||||
"operator-linebreak": [2, "after"],
|
"operator-linebreak": [2, "after"],
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -42,7 +42,6 @@ class WebUI extends Component {
|
||||||
this.props.appendMonitorMessage(MonitorTools.createTextDiv(
|
this.props.appendMonitorMessage(MonitorTools.createTextDiv(
|
||||||
`Attempting to connect to MultiClient (attempt ${this.state.connectionAttempts + 1})...`,
|
`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 }, () => {
|
this.setState({ connectionAttempts: this.state.connectionAttempts + 1 }, () => {
|
||||||
if (this.state.connectionAttempts >= 20) {
|
if (this.state.connectionAttempts >= 20) {
|
||||||
this.props.appendMonitorMessage(MonitorTools.createTextDiv(
|
this.props.appendMonitorMessage(MonitorTools.createTextDiv(
|
||||||
|
@ -90,7 +89,6 @@ class WebUI extends Component {
|
||||||
this.props.appendMonitorMessage(MonitorTools.createTextDiv('Connected to MultiClient.'));
|
this.props.appendMonitorMessage(MonitorTools.createTextDiv('Connected to MultiClient.'));
|
||||||
this.setState({ connectionAttempts: 0 });
|
this.setState({ connectionAttempts: 0 });
|
||||||
};
|
};
|
||||||
this.setState({ connectionInProgress: false });
|
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue