electron/default_app/default_app.js
Steve Kinney b6fd4fed38 💄 Update default_app to ES6 conventions
Add space before object literal method
2016-05-07 08:18:22 -06:00

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()
})
}