Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
app.on('ready', () => {
const mainWindow = createWindow('main', {
width: 1000,
height: 600
});
mainWindow.loadURL(
format({
pathname: join(__dirname, 'home/index.html'),
protocol: 'file:',
slashes: true
})
);
if (env.name === 'development') {
mainWindow.openDevTools();
}
});