2023-08-28 05:23:10 -06:00
|
|
|
const { app, BrowserWindow } = require('electron/main')
|
2021-05-24 01:34:00 -06:00
|
|
|
|
|
|
|
function createWindow () {
|
|
|
|
const onlineStatusWindow = new BrowserWindow({
|
|
|
|
width: 300,
|
|
|
|
height: 200
|
|
|
|
})
|
|
|
|
|
|
|
|
onlineStatusWindow.loadFile('index.html')
|
|
|
|
}
|
|
|
|
|
|
|
|
app.whenReady().then(() => {
|
|
|
|
createWindow()
|
|
|
|
|
|
|
|
app.on('activate', () => {
|
|
|
|
if (BrowserWindow.getAllWindows().length === 0) {
|
|
|
|
createWindow()
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
app.on('window-all-closed', () => {
|
|
|
|
if (process.platform !== 'darwin') {
|
|
|
|
app.quit()
|
|
|
|
}
|
|
|
|
})
|