From f4df38735ce9571f8f20f0b71d5dca02f9e0788f Mon Sep 17 00:00:00 2001 From: lilia Date: Thu, 30 Mar 2017 16:30:01 -0700 Subject: [PATCH] Enable sandbox // FREEBIE --- main.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/main.js b/main.js index daf0fd315..6108de7b4 100644 --- a/main.js +++ b/main.js @@ -17,7 +17,11 @@ let mainWindow function createWindow () { // 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. mainWindow.loadURL(url.format({