fix undefined response for unauthorized websocket request

mitchross-coral-installer-update
Moe Alam 2021-01-20 07:23:31 -08:00
parent 1e395dff60
commit 51f5c08f35
1 changed files with 4 additions and 1 deletions

View File

@ -737,7 +737,10 @@ module.exports = function(s,config,lang,io){
s.systemLog('ERROR CATCH 1',er)
}
}else{
tx({ok:false,msg:lang.NotAuthorizedText1});
cn.emit('f',{
ok: false,
msg: lang.NotAuthorizedText1
});
}
});
// super page socket functions