arcade-machine/ui/main.js
2023-02-23 13:39:06 +02:00

21 lines
499 B
JavaScript

const { app, BrowserWindow } = require('electron');
const createWindow = () => {
// Create the browser window.
mainWindow = new BrowserWindow({
width: 800,
height: 600,
webPreferences: {
nodeIntegration: true,
contextIsolation: false,
enableRemoteModule: true
},
autoHideMenuBar: true
});
mainWindow.loadFile("index.html") //loadne index.html
};
app.whenReady().then(() => {
createWindow();
});