Fixed local-mode issues

This commit is contained in:
Kasper Rynning-Tønnesen
2018-03-02 13:04:56 +01:00
parent 5e9e682932
commit b9bc22d1d2
4 changed files with 27 additions and 17 deletions

View File

@@ -504,9 +504,9 @@ function sendColor(coll, socket, id) {
var c = ColorThief.getColor(image);
if(socket) {
socket.emit("color", {color: c});
socket.emit("color", {color: c, only: true});
} else {
io.to(coll).emit("color", {color: c});
io.to(coll).emit("color", {color: c, only: false});
}
});
}