mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 19:46:01 +01:00
dont change height if sizing horizontally #1508
This commit is contained in:
@@ -197,8 +197,12 @@ Sockets.in = function(room) {
|
||||
};
|
||||
|
||||
Sockets.getConnectedClients = function() {
|
||||
var clients = io.sockets.clients();
|
||||
var uids = [];
|
||||
if (!io) {
|
||||
return uids;
|
||||
}
|
||||
var clients = io.sockets.clients();
|
||||
|
||||
clients.forEach(function(client) {
|
||||
if(client.uid && uids.indexOf(client.uid) === -1) {
|
||||
uids.push(client.uid);
|
||||
|
||||
Reference in New Issue
Block a user