Enable sandbox

// FREEBIE
This commit is contained in:
lilia 2017-03-30 16:30:01 -07:00 committed by Scott Nonnenberg
parent 584d29f4a4
commit f4df38735c
No known key found for this signature in database
GPG key ID: A4931C09644C654B

View file

@ -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({