const {app, BrowserWindow} = require('electron')
const url = require('url')
const path = require('path')
let win
const createWindow = ()=> {
win = new BrowserWindow({
width:800,
height: 600,
resizable: false })
win.loadFile('index.html')
}
app.whenReady().then(createWindow)
Then when I run I say electron main.js in the terminal and it takes for ever to load my window