kalkulator/index.js

24 lines
520 B
JavaScript
Raw Normal View History

2024-10-16 22:46:58 +02:00
const { app, BrowserWindow } = require('electron');
app.whenReady().then(() => {
createWindow();
app.on('activate', () => {
if (BrowserWindow.getAllWindows().length === 0) createWindow();
});
});
app.on('window-all-closed', () => {
if (process.platform !== 'darwin') app.quit();
});
function createWindow() {
const win = new BrowserWindow({
width: 280,
height: 485,
2024-10-17 09:05:34 +02:00
resizable: false,
2024-10-16 22:46:58 +02:00
autoHideMenuBar: true,
});
win.loadFile('static/index.html');
}