Skip to content

Commit bfffb9d

Browse files
authored
fix: loading minimist in packaged builds (microsoft#184915)
1 parent f660240 commit bfffb9d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/main.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,18 +27,18 @@ const { getUNCHost, addUNCHostToAllowlist } = require('./vs/base/node/unc');
2727
const product = require('../product.json');
2828
const { app, protocol, crashReporter, Menu } = require('electron');
2929

30-
// Enable sandbox globally unless disabled via `--no-sandbox` argument
31-
const args = parseCLIArgs();
32-
if (args['sandbox']) {
33-
app.enableSandbox();
34-
}
35-
3630
// Enable portable support
3731
const portable = bootstrapNode.configurePortable(product);
3832

3933
// Enable ASAR support
4034
bootstrap.enableASARSupport();
4135

36+
// Enable sandbox globally unless disabled via `--no-sandbox` argument
37+
const args = parseCLIArgs();
38+
if (args['sandbox']) {
39+
app.enableSandbox();
40+
}
41+
4242
// Set userData path before app 'ready' event
4343
const userDataPath = getUserDataPath(args, product.nameShort ?? 'code-oss-dev');
4444
if (process.platform === 'win32') {

0 commit comments

Comments
 (0)