turn on sandbox

This commit is contained in:
Lynn Neir 2017-02-12 17:11:02 -08:00
parent 7c5e88f8b0
commit fee036f98f

View File

@ -36,7 +36,7 @@ function createMainWindow () {
title: 'Symphony',
width: 1024, height: 768,
webPreferences: {
sandbox: false,
sandbox: true,
nodeIntegration: false,
preload: path.join(__dirname, '/main-preload.js'),
winKey: key
@ -46,7 +46,7 @@ function createMainWindow () {
storeWindowKey(key, mainWindow)
mainWindow.loadURL(packageJSON.homepage);
const menu = electron.Menu.buildFromTemplate(menuTemplate(app));
electron.Menu.setApplicationMenu(menu);
@ -130,7 +130,7 @@ electron.ipcMain.on('symphony-msg', (event, arg) => {
width: width,
height: height,
webPreferences: {
sandbox: false,
sandbox: true,
nodeIntegration: false,
preload: path.join(__dirname, '/child-preload.js'),
winKey: winKey