20 lines
405 B
JavaScript
20 lines
405 B
JavaScript
const { app, BrowserWindow } = require('electron')
|
|
|
|
function createWindow () {
|
|
// Create the browser window.
|
|
const win = new BrowserWindow({
|
|
width: 800,
|
|
height: 600,
|
|
//autoHideMenuBar: true,
|
|
menuBarVisible: false,
|
|
webPreferences: {
|
|
nodeIntegration: true,
|
|
}
|
|
})
|
|
|
|
// and load the index.html of the app.
|
|
win.loadFile('index.html')
|
|
}
|
|
|
|
app.whenReady().then(createWindow)
|