mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-16 21:58: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 }) => {
|
rpc.on('new', ({ rows = 40, cols = 100, cwd = process.env.HOME }) => {
|
||||||
const shell = cfg.shell;
|
const shell = cfg.shell;
|
||||||
const shellArgs = cfg.shellArgs;
|
const 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