mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-20 15:36:16 -04:00
fixed connection=null error
This commit is contained in:
parent
5dc72234ab
commit
45cccef3e7
1 changed files with 2 additions and 2 deletions
|
@ -436,7 +436,7 @@ function handleClientReady(client, message)
|
||||||
},
|
},
|
||||||
"collab_client_vars": {
|
"collab_client_vars": {
|
||||||
"initialAttributedText": atext,
|
"initialAttributedText": atext,
|
||||||
"clientIp": client.request.connection.remoteAddress,
|
"clientIp": (client.request && client.request.connection) ? client.request.connection.remoteAddress : "127.0.0.1",
|
||||||
//"clientAgent": "Anonymous Agent",
|
//"clientAgent": "Anonymous Agent",
|
||||||
"padId": message.padId,
|
"padId": message.padId,
|
||||||
"historicalAuthorData": {},
|
"historicalAuthorData": {},
|
||||||
|
@ -445,7 +445,7 @@ function handleClientReady(client, message)
|
||||||
"globalPadId": message.padId
|
"globalPadId": message.padId
|
||||||
},
|
},
|
||||||
"colorPalette": ["#ffc7c7", "#fff1c7", "#e3ffc7", "#c7ffd5", "#c7ffff", "#c7d5ff", "#e3c7ff", "#ffc7f1", "#ff8f8f", "#ffe38f", "#c7ff8f", "#8fffab", "#8fffff", "#8fabff", "#c78fff", "#ff8fe3", "#d97979", "#d9c179", "#a9d979", "#79d991", "#79d9d9", "#7991d9", "#a979d9", "#d979c1", "#d9a9a9", "#d9cda9", "#c1d9a9", "#a9d9b5", "#a9d9d9", "#a9b5d9", "#c1a9d9", "#d9a9cd"],
|
"colorPalette": ["#ffc7c7", "#fff1c7", "#e3ffc7", "#c7ffd5", "#c7ffff", "#c7d5ff", "#e3c7ff", "#ffc7f1", "#ff8f8f", "#ffe38f", "#c7ff8f", "#8fffab", "#8fffff", "#8fabff", "#c78fff", "#ff8fe3", "#d97979", "#d9c179", "#a9d979", "#79d991", "#79d9d9", "#7991d9", "#a979d9", "#d979c1", "#d9a9a9", "#d9cda9", "#c1d9a9", "#a9d9b5", "#a9d9d9", "#a9b5d9", "#c1a9d9", "#d9a9cd"],
|
||||||
"clientIp": client.request.connection.remoteAddress,
|
"clientIp": (client.request && client.request.connection) ? client.request.connection.remoteAddress : "127.0.0.1",
|
||||||
"userIsGuest": true,
|
"userIsGuest": true,
|
||||||
"userColor": authorManager.getAuthorColorId(author),
|
"userColor": authorManager.getAuthorColorId(author),
|
||||||
"padId": message.padId,
|
"padId": message.padId,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue