mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-24 01:16:15 -04: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);
|
||||
}
|
||||
|
||||
var sessionID = decodeURIComponent(readCookie("sessionID"));
|
||||
var encodedSessionID = readCookie('sessionID');
|
||||
var sessionID = encodedSessionID == null ? null : decodeURIComponent(encodedSessionID);
|
||||
var password = readCookie("password");
|
||||
|
||||
var msg = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue