mirror of
https://github.com/danbulant/arcade-machine
synced 2026-06-10 18:20:32 +00:00
21 lines
499 B
JavaScript
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();
|
|
});
|