wiki-app-builder/index.js

27 lines
522 B
JavaScript
Raw Normal View History

2024-05-18 14:23:26 +00:00
const { app, BrowserWindow } = require('electron/main')
const path = require('node:path')
function createWindow () {
const win = new BrowserWindow({
width: 1280,
height: 720
})
win.loadURL("https://wiki.hackmi.ch")
}
app.whenReady().then(() => {
createWindow()
app.on('activate', () => {
if (BrowserWindow.getAllWindows().length === 0) {
createWindow()
}
})
})
app.on('window-all-closed', () => {
if (process.platform !== 'darwin') {
app.quit()
}
})