b6fd4fed38
Add space before object literal method
22 lines
450 B
JavaScript
22 lines
450 B
JavaScript
const {app, BrowserWindow} = require('electron')
|
|
|
|
var mainWindow = null
|
|
|
|
// Quit when all windows are closed.
|
|
app.on('window-all-closed', () => {
|
|
app.quit()
|
|
})
|
|
|
|
exports.load = (appUrl) => {
|
|
app.on('ready', () => {
|
|
mainWindow = new BrowserWindow({
|
|
width: 800,
|
|
height: 600,
|
|
autoHideMenuBar: true,
|
|
backgroundColor: '#FFFFFF',
|
|
useContentSize: true
|
|
})
|
|
mainWindow.loadURL(appUrl)
|
|
mainWindow.focus()
|
|
})
|
|
}
|