in src/App/main.js [15:42]
function createWindow () {
// Create the browser window.
mainWin = new BrowserWindow({
width: 800,
height: 600,
frame: false,
webPreferences: {
nodeIntegration: true
}
});
// and load the index.html of the app.
mainWin.loadFile('index.html');
// Open the DevTools.
//mainWin.webContents.openDevTools()
//mainWin.setMenuBarVisibility(false);
// Emitted when the window is closed.
mainWin.on('closed', () => {
// Dereference the window object, usually you would store windows
// in an array if your app supports multi windows, this is the time
// when you should delete the corresponding element.
mainWin = null
});
}