feat: add app.enableSandbox() (#14999)
This commit is contained in:
parent
cc0c6ad14a
commit
5bd6de52e0
5 changed files with 99 additions and 22 deletions
6
spec/fixtures/api/mixed-sandbox-app/main.js
vendored
6
spec/fixtures/api/mixed-sandbox-app/main.js
vendored
|
@ -6,7 +6,11 @@ process.on('uncaughtException', () => {
|
|||
app.exit(1)
|
||||
})
|
||||
|
||||
if (!process.argv.includes('--enable-mixed-sandbox')) {
|
||||
if (process.argv.includes('--app-enable-sandbox')) {
|
||||
app.enableSandbox()
|
||||
}
|
||||
|
||||
if (process.argv.includes('--app-enable-mixed-sandbox')) {
|
||||
app.enableMixedSandbox()
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue