mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-15 05:08:41 -09:00
Fix: do not throw when shellArgs is not present in .hyperterm.js (#678)
See dfcb0a9629 (commitcomment-18834267)
This commit is contained in:
parent
7758e3305b
commit
3be8ffd486
1 changed files with 1 additions and 1 deletions
|
|
@ -146,7 +146,7 @@ app.on('ready', () => {
|
||||||
|
|
||||||
rpc.on('new', ({ rows = 40, cols = 100, cwd = process.env.HOME }) => {
|
rpc.on('new', ({ rows = 40, cols = 100, cwd = process.env.HOME }) => {
|
||||||
const shell = cfg.shell;
|
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) => {
|
initSession({ rows, cols, cwd, shell, shellArgs }, (uid, session) => {
|
||||||
sessions.set(uid, session);
|
sessions.set(uid, session);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue