2019-10-15 21:06:58 +00:00
|
|
|
const { BrowserWindow, app } = require('electron')
|
|
|
|
|
|
|
|
let mainWindow = null
|
|
|
|
|
|
|
|
function createWindow () {
|
|
|
|
const windowOptions = {
|
|
|
|
width: 600,
|
|
|
|
height: 300,
|
|
|
|
title: 'Advanced Notification',
|
|
|
|
webPreferences: {
|
|
|
|
nodeIntegration: true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
mainWindow = new BrowserWindow(windowOptions)
|
|
|
|
mainWindow.loadFile('index.html')
|
|
|
|
|
|
|
|
mainWindow.on('closed', () => {
|
|
|
|
mainWindow = null
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
2020-02-03 22:43:22 +00:00
|
|
|
app.whenReady().then(() => {
|
2019-10-15 21:06:58 +00:00
|
|
|
createWindow()
|
|
|
|
})
|