mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-02-01 03:12:42 +01:00
Use null
, not "null"
, if sessionID
cookie doesn't exist
`decodeURIComponent(null)` returns the string `'null'`, which we don't want.
This commit is contained in:
parent
24978daeb0
commit
ed3c82e8c3
1 changed files with 2 additions and 1 deletions
|
@ -156,7 +156,8 @@ function sendClientReady(isReconnect, messageType)
|
||||||
createCookie("token", token, 60);
|
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 password = readCookie("password");
|
||||||
|
|
||||||
var msg = {
|
var msg = {
|
||||||
|
|
Loading…
Reference in a new issue