mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Fixed local-mode issues
This commit is contained in:
@@ -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});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user