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