]> git.cworth.org Git - zombocom-ai/blobdiff - index.js
Remove the cancel button from the profile dialog
[zombocom-ai] / index.js
index 0b854a66bcd9643590393b418a8f3125c61241f1..1239ea2fab43360d621942d40ecd95cacced79f3 100644 (file)
--- a/index.js
+++ b/index.js
@@ -91,7 +91,9 @@ io.on('connection', (socket) => {
     });
 
     // When any client comments, send that to all clients (including sender)
-    socket.on('comment', (comment) => {
+    socket.on('comment', (comment_text) => {
+        comment = { name: socket.request.session.name,
+                    text: comment_text }
         io.emit('comment', comment);
         state.comments.push(comment);
     });