14 lines
384 B
JavaScript
14 lines
384 B
JavaScript
const { app, BrowserWindow } = require('electron')
|
|
const path = require('path')
|
|
|
|
app.whenReady().then(() => {
|
|
const win = new BrowserWindow({
|
|
fullscreen: true,
|
|
autoHideMenuBar: true,
|
|
webPreferences: { nodeIntegration: false, contextIsolation: true }
|
|
})
|
|
win.loadFile(path.join(__dirname, '..', 'dist', 'index.html'))
|
|
})
|
|
|
|
app.on('window-all-closed', () => app.quit())
|