mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-19 14:13:34 +01:00
Made the router a little safer.
This commit is contained in:
parent
6e09517d55
commit
74b96aa774
1 changed files with 6 additions and 1 deletions
|
@ -62,8 +62,13 @@ exports.setSocketIO = function(_socket)
|
|||
if(message.component && components[message.component])
|
||||
{
|
||||
console.error(message);
|
||||
|
||||
//check if component is registered in the components array
|
||||
if(components[message.component])
|
||||
{
|
||||
components[message.component].handleMessage(client, message);
|
||||
}
|
||||
|
||||
components[message.component].handleMessage(client, message);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue