Use `null`, not `"null"`, if `sessionID` cookie doesn't exist
`decodeURIComponent(null)` returns the string `'null'`, which we don't want.pull/4285/head
parent
24978daeb0
commit
ed3c82e8c3
|
@ -156,7 +156,8 @@ function sendClientReady(isReconnect, messageType)
|
|||
createCookie("token", token, 60);
|
||||
}
|
||||
|
||||
var sessionID = decodeURIComponent(readCookie("sessionID"));
|
||||
var encodedSessionID = readCookie('sessionID');
|
||||
var sessionID = encodedSessionID == null ? null : decodeURIComponent(encodedSessionID);
|
||||
var password = readCookie("password");
|
||||
|
||||
var msg = {
|
||||
|
|
Loading…
Reference in New Issue