mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Update list.js
This commit is contained in:
committed by
GitHub
parent
4301c989f0
commit
d7d1416c9c
@@ -85,8 +85,8 @@ function list(msg, guid, coll, offline, socket) {
|
|||||||
socket.join(coll);
|
socket.join(coll);
|
||||||
Functions.check_inlist(coll, guid, socket, offline, undefined, "place 10");
|
Functions.check_inlist(coll, guid, socket, offline, undefined, "place 10");
|
||||||
|
|
||||||
if(frontpage_lists.viewers != undefined){
|
if(frontpage_lists[0].viewers != undefined){
|
||||||
io.to(coll).emit("viewers", frontpage_lists.viewers);
|
io.to(coll).emit("viewers", frontpage_lists[0].viewers);
|
||||||
} else {
|
} else {
|
||||||
io.to(coll).emit("viewers", 1);
|
io.to(coll).emit("viewers", 1);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user