mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-04-25 00:16:29 +02:00
18 lines
No EOL
364 B
JavaScript
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();
|
|
}); |