mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-22 08:26:16 -04:00
Replace tabs indentation with spaces indentation
Some files are obviously external libraries, I didn't touch them
This commit is contained in:
parent
03ff5563f4
commit
3d8452b143
35 changed files with 511 additions and 510 deletions
|
@ -455,7 +455,7 @@ function handleGetChatMessages(client, message)
|
|||
pad.getChatMessages(start, end, function(err, chatMessages)
|
||||
{
|
||||
if(ERR(err, callback)) return;
|
||||
|
||||
|
||||
var infoMsg = {
|
||||
type: "COLLABROOM",
|
||||
data: {
|
||||
|
@ -463,7 +463,7 @@ function handleGetChatMessages(client, message)
|
|||
messages: chatMessages
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
// send the messages back to the client
|
||||
client.json.send(infoMsg);
|
||||
});
|
||||
|
@ -1564,7 +1564,7 @@ exports.padUsers = function (padID, callback) {
|
|||
|
||||
author.id = s.author;
|
||||
result.push(author);
|
||||
callback();
|
||||
callback();
|
||||
});
|
||||
}
|
||||
}, function(err) {
|
||||
|
|
|
@ -57,11 +57,11 @@ exports.setSocketIO = function(_socket) {
|
|||
socket.sockets.on('connection', function(client)
|
||||
{
|
||||
if(settings.trustProxy && client.handshake.headers['x-forwarded-for'] !== undefined){
|
||||
client.set('remoteAddress', client.handshake.headers['x-forwarded-for']);
|
||||
}
|
||||
else{
|
||||
client.set('remoteAddress', client.handshake.address.address);
|
||||
}
|
||||
client.set('remoteAddress', client.handshake.headers['x-forwarded-for']);
|
||||
}
|
||||
else{
|
||||
client.set('remoteAddress', client.handshake.address.address);
|
||||
}
|
||||
var clientAuthorized = false;
|
||||
|
||||
//wrap the original send function to log the messages
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue