open url electron windows command line code example
Example 1: create window electron
const createWindow = () => {
const mainWindow = new BrowserWindow({
width: 800,
height: 400,
});
mainWindow.loadFile(path.join(__dirname, 'index.html'));
};
Example 2: create window electron
app.on('ready', createWindow);