rowboat/apps/electron/main.js
Ramnique Singh 2491bacea1 wip-electron
2026-01-16 12:05:33 +05:30

18 lines
No EOL
364 B
JavaScript

const { app, BrowserWindow } = require('electron');
const path = require('node:path');
const createWindow = () => {
const win = new BrowserWindow({
width: 800,
height: 600,
webPreferences: {
preload: path.join(__dirname, 'preload.js')
},
});
win.loadURL('http://localhost:8080');
};
app.whenReady().then(() => {
createWindow();
});