// Load electron const electron = require("electron"); const {app, BrowserWindow} = electron; // Load url and path const url = require("url"); const path = require("path"); // Set the window varible let win; // Load the GUI app.on('ready', function() { // Set the electron GUI win = new BrowserWindow({width:1000,height:600}); win.loadURL(url.format ({ pathname: path.join(__dirname, 'index.html'), protocol: 'file:', slashes: true })); });