mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-13 12:38:39 -09:00
fix: errors and crashes on Linux because shellArgs being mutated (#662)
Fixes #661
This commit is contained in:
parent
9a0316dd59
commit
dfcb0a9629
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 }) => {
|
||||
const shell = cfg.shell;
|
||||
const shellArgs = cfg.shellArgs;
|
||||
const shellArgs = Array.from(cfg.shellArgs);
|
||||
|
||||
initSession({ rows, cols, cwd, shell, shellArgs }, (uid, session) => {
|
||||
sessions.set(uid, session);
|
||||
|
|
|
|||
Loading…
Reference in a new issue