From 791b7426843664efbe8356dd93e6de0781bca860 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Fri, 4 Jun 2021 17:50:49 +0200 Subject: [PATCH] Allow config.server.ping to be a String Workaround for existing config files in the wild. --- components/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/app.js b/components/app.js index b6a697f..d201126 100644 --- a/components/app.js +++ b/components/app.js @@ -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); } }