20 lines
339 B
JavaScript
20 lines
339 B
JavaScript
const { app, BrowserWindow } = require('electron');
|
|
|
|
function createWindow () {
|
|
const win = new BrowserWindow({
|
|
width: 800,
|
|
height: 600,
|
|
webPreferences: {
|
|
nodeIntegration: true
|
|
}
|
|
});
|
|
|
|
win.setMenu(null);
|
|
|
|
win.loadURL('http://localhost:8080');
|
|
|
|
win.setFullScreen(true);
|
|
|
|
}
|
|
|
|
app.whenReady().then(createWindow); |