Allow config.server.ping to be a String

Workaround for existing config files in the wild.
This commit is contained in:
Simon Ser 2021-06-04 17:50:49 +02:00
parent 6e20ad872e
commit 791b742684

View file

@ -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);
} }
} }