mirror of
https://github.com/finos/SymphonyElectron.git
synced 2024-11-30 12:43:59 -06:00
Merge pull request #340 from VikasShashidhar/Electron-430
ELECTRON-430: Enable context isolation
This commit is contained in:
commit
77999b3a87
@ -20,6 +20,7 @@ let windowConfig = {
|
||||
titleBarStyle: true,
|
||||
resizable: false,
|
||||
webPreferences: {
|
||||
contextIsolation: true,
|
||||
preload: path.join(__dirname, 'renderer.js'),
|
||||
sandbox: true,
|
||||
nodeIntegration: false
|
||||
|
@ -23,6 +23,7 @@ let windowConfig = {
|
||||
titleBarStyle: true,
|
||||
resizable: false,
|
||||
webPreferences: {
|
||||
contextIsolation: true,
|
||||
preload: path.join(__dirname, 'renderer.js'),
|
||||
sandbox: true,
|
||||
nodeIntegration: false
|
||||
|
@ -24,6 +24,7 @@ let windowConfig = {
|
||||
resizable: false,
|
||||
alwaysOnTop: true,
|
||||
webPreferences: {
|
||||
contextIsolation: true,
|
||||
preload: path.join(__dirname, 'renderer.js'),
|
||||
sandbox: true,
|
||||
nodeIntegration: false
|
||||
|
@ -136,6 +136,7 @@ let config = {
|
||||
transparent: true,
|
||||
acceptFirstMouse: true,
|
||||
webPreferences: {
|
||||
contextIsolation: true,
|
||||
preload: path.join(__dirname, 'electron-notify-preload.js'),
|
||||
sandbox: sandboxed,
|
||||
nodeIntegration: isNodeEnv
|
||||
|
@ -27,6 +27,7 @@ let windowConfig = {
|
||||
autoHideMenuBar: true,
|
||||
resizable: false,
|
||||
webPreferences: {
|
||||
contextIsolation: true,
|
||||
preload: path.join(__dirname, 'configure-notification-position-preload.js'),
|
||||
sandbox: sandboxed,
|
||||
nodeIntegration: false
|
||||
|
@ -140,6 +140,7 @@ function doCreateMainWindow(initialUrl, initialBounds, isCustomTitleBar) {
|
||||
alwaysOnTop: false,
|
||||
webPreferences: {
|
||||
sandbox: sandboxed,
|
||||
contextIsolation: true,
|
||||
nodeIntegration: isNodeEnv,
|
||||
preload: preloadMainScript,
|
||||
nativeWindowOpen: true
|
||||
|
Loading…
Reference in New Issue
Block a user