Make sure data is an object

This commit is contained in:
Pavel Djundik 2018-08-29 13:55:30 +03:00
parent e619579b1b
commit 295fe2bd09

View file

@ -619,6 +619,10 @@ function getServerConfiguration() {
}
function performAuthentication(data) {
if (typeof data !== "object") {
return;
}
const socket = this;
let client;
let token = null;