Fix: do not throw when shellArgs is not present in .hyperterm.js (#678)

See dfcb0a9629 (commitcomment-18834267)
This commit is contained in:
Matheus Fernandes 2016-08-31 23:33:01 -03:00 committed by GitHub
parent 7758e3305b
commit 3be8ffd486

View file

@ -146,7 +146,7 @@ app.on('ready', () => {
rpc.on('new', ({ rows = 40, cols = 100, cwd = process.env.HOME }) => {
const shell = cfg.shell;
const shellArgs = Array.from(cfg.shellArgs);
const shellArgs = cfg.shellArgs && Array.from(cfg.shellArgs);
initSession({ rows, cols, cwd, shell, shellArgs }, (uid, session) => {
sessions.set(uid, session);