forked from MarseyWorld/MarseyWorld
12 lines
243 B
JavaScript
12 lines
243 B
JavaScript
|
const socket = io()
|
||
|
|
||
|
socket.on('insert_reply', function(data) {
|
||
|
const replies = document.getElementById(`replies-of-c_${data[0]}`)
|
||
|
replies.insertAdjacentHTML('beforeend', data[1]);
|
||
|
|
||
|
notifs = notifs + 1;
|
||
|
if (notifs == 1) {
|
||
|
flash();
|
||
|
}
|
||
|
})
|