diff --git a/src/client.js b/src/client.js index 50edae01..a8270373 100644 --- a/src/client.js +++ b/src/client.js @@ -377,8 +377,14 @@ Client.prototype.more = function(data) { }); }; -Client.prototype.open = function(socketId, data) { - var target = this.find(data); +Client.prototype.open = function(socketId, target) { + // Opening a window like settings + if (target === null) { + this.attachedClients[socketId] = -1; + return; + } + + target = this.find(target); if (!target) { return; }