You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
376 B

// Importing modules
const { app, BrowserWindow } = require('electron')
// Reusable function to instantiate windows
const createWindow = () => {
const win = new BrowserWindow({
width: 800,
height: 600,
})
win.loadFile('index.html')
}
// Call window instantiating function when the app is ready
app.whenReady().then(() => {
createWindow()
})