fix(terminal) config: terminal and terminalPath checked before set

This commit is contained in:
coderaiser 2017-04-25 11:56:49 +03:00
parent a260a921ba
commit 10307291a3
3 changed files with 21 additions and 10 deletions

View file

@ -180,7 +180,7 @@ function listen(prefix, socket) {
prefix: prefix + '/console',
});
config('terminal') && terminal.listen(socket, {
config('terminal') && terminal().listen(socket, {
authCheck,
prefix: prefix + '/gritty',
});