parent
1fe4cd0955
commit
438fd47409
@ -1 +1,17 @@
|
||||
console.log(`Hello from Electron 👋`)
|
||||
// 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()
|
||||
})
|
||||
|
Loading…
Reference in new issue