mirror of
https://github.com/thelounge/thelounge
synced 2024-11-26 05:50:22 +00:00
Make sure data is an object
This commit is contained in:
parent
e619579b1b
commit
295fe2bd09
1 changed files with 4 additions and 0 deletions
|
@ -619,6 +619,10 @@ function getServerConfiguration() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function performAuthentication(data) {
|
function performAuthentication(data) {
|
||||||
|
if (typeof data !== "object") {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const socket = this;
|
const socket = this;
|
||||||
let client;
|
let client;
|
||||||
let token = null;
|
let token = null;
|
||||||
|
|
Loading…
Reference in a new issue