18 lines
329 B
JavaScript
18 lines
329 B
JavaScript
|
const { app, BowserWindow } = require('electron')
|
||
|
|
||
|
app.whenReady().then(() => {
|
||
|
const mainWin = new BowserWindow({
|
||
|
width: 600,
|
||
|
height: 400
|
||
|
})
|
||
|
|
||
|
mainWin.loadFile('index.html')
|
||
|
|
||
|
mainWin.on('close', () => {
|
||
|
console.log(111);
|
||
|
})
|
||
|
})
|
||
|
|
||
|
app.on('window-all-closed', () => {
|
||
|
app.quit()
|
||
|
})
|