mirror of
https://git.sr.ht/~emersion/gamja
synced 2024-11-14 19:25:26 -05:00
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
1 changed files with 1 additions and 1 deletions
|
@ -599,7 +599,7 @@ export default class App extends Component {
|
|||
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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue