Harmonise client connection params
This commit is contained in:
parent
1f640a4010
commit
0e078932c0
2 changed files with 4 additions and 11 deletions
|
@ -21,7 +21,7 @@ export default class Connect extends Component {
|
|||
if (props.params) {
|
||||
this.state = {
|
||||
...this.state,
|
||||
serverURL: props.params.serverURL || "",
|
||||
serverURL: props.params.url || "",
|
||||
nick: props.params.nick || "",
|
||||
rememberMe: props.params.autoconnect || false,
|
||||
username: props.params.username || "",
|
||||
|
@ -45,8 +45,8 @@ export default class Connect extends Component {
|
|||
}
|
||||
|
||||
var params = {
|
||||
serverURL: this.state.serverURL,
|
||||
serverPass: this.state.serverPass,
|
||||
url: this.state.serverURL,
|
||||
pass: this.state.serverPass,
|
||||
nick: this.state.nick,
|
||||
autoconnect: this.state.rememberMe,
|
||||
username: this.state.username || this.state.nick,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue