mirror of
https://github.com/finos/SymphonyElectron.git
synced 2024-12-28 09:51:06 -06:00
Implemented method to turn off sandbox mode when the app is running in node env
This commit is contained in:
parent
586b569864
commit
654441ce8c
@ -131,8 +131,8 @@ let config = {
|
||||
acceptFirstMouse: true,
|
||||
webPreferences: {
|
||||
preload: path.join(__dirname, 'electron-notify-preload.js'),
|
||||
sandbox: true,
|
||||
nodeIntegration: false
|
||||
sandbox: !process.env.NODE_ENV,
|
||||
nodeIntegration: process.env.NODE_ENV
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -80,8 +80,8 @@ function doCreateMainWindow(initialUrl, initialBounds) {
|
||||
minHeight: MIN_HEIGHT,
|
||||
alwaysOnTop: false,
|
||||
webPreferences: {
|
||||
sandbox: true,
|
||||
nodeIntegration: false,
|
||||
sandbox: !process.env.NODE_ENV,
|
||||
nodeIntegration: process.env.NODE_ENV,
|
||||
preload: preloadMainScript,
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user