mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-31 19:02:59 +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
|
@ -63,7 +63,12 @@ exports.setSocketIO = function(_socket)
|
||||||
{
|
{
|
||||||
console.error(message);
|
console.error(message);
|
||||||
|
|
||||||
components[message.component].handleMessage(client, message);
|
//check if component is registered in the components array
|
||||||
|
if(components[message.component])
|
||||||
|
{
|
||||||
|
components[message.component].handleMessage(client, message);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue