forked from CringeStudios/gamja
Allow config.server.ping to be a String
Workaround for existing config files in the wild.
This commit is contained in:
parent
6e20ad872e
commit
791b742684
@ -599,7 +599,7 @@ export default class App extends Component {
|
|||||||
this.switchToChannel = params.autojoin[0];
|
this.switchToChannel = params.autojoin[0];
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.config.server && typeof this.config.server.ping === "number") {
|
if (this.config.server && typeof this.config.server.ping !== "undefined") {
|
||||||
client.setPingInterval(this.config.server.ping);
|
client.setPingInterval(this.config.server.ping);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user