Enable sandbox
// FREEBIE
This commit is contained in:
parent
584d29f4a4
commit
f4df38735c
1 changed files with 5 additions and 1 deletions
6
main.js
6
main.js
|
@ -17,7 +17,11 @@ let mainWindow
|
||||||
|
|
||||||
function createWindow () {
|
function createWindow () {
|
||||||
// Create the browser window.
|
// Create the browser window.
|
||||||
mainWindow = new BrowserWindow({width: 800, height: 600, webPreferences: {nodeIntegration: false}})
|
mainWindow = new BrowserWindow({
|
||||||
|
width: 800,
|
||||||
|
height: 600,
|
||||||
|
webPreferences: { nodeIntegration: false, sandbox: true }
|
||||||
|
})
|
||||||
|
|
||||||
// and load the index.html of the app.
|
// and load the index.html of the app.
|
||||||
mainWindow.loadURL(url.format({
|
mainWindow.loadURL(url.format({
|
||||||
|
|
Loading…
Reference in a new issue