Skip to content

Commit

Permalink
allow user disable electron's sandbox
Browse files Browse the repository at this point in the history
  • Loading branch information
bruceauyeung committed Jan 15, 2020
1 parent f127308 commit 6d69b7b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/electron/proc/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ export class Electron {
// electron starter
const entry = path.join(__dirname, '../main/index');
const args = [ entry ];

if (process.env.JEST_ELECTRON_NO_SANDBOX && process.platform !== 'win32'){
args.splice(0, 0, '--no-sandbox');
};
const proc = spawn(
electron as any,
args,
Expand Down

0 comments on commit 6d69b7b

Please sign in to comment.