Hendrik Langer 4 years ago
parent
commit
d1abe6edee
  1. 4
      raspberry/roberto/views/frontend/templates/index.html

4
raspberry/roberto/views/frontend/templates/index.html

@ -45,7 +45,7 @@
position: absolute; position: absolute;
z-index: 1; z-index: 1;
top: 20px; top: 20px;
right: 50px right: 50px;
text-align: right; text-align: right;
} }
.stats-box { .stats-box {
@ -198,7 +198,7 @@ socket.on('text', (data) => {
console.log('Text received: ',data); console.log('Text received: ',data);
var chatlog = document.getElementById("chat"); var chatlog = document.getElementById("chat");
var new_message = document.createElement('p'); var new_message = document.createElement('p');
new_message.innerHTML = data; new_message.innerHTML = data.data;
chatlog.append(new_message); chatlog.append(new_message);
}); });

Loading…
Cancel
Save