💄 Update default_app to ES6 conventions

Add space before object literal method
This commit is contained in:
Steve Kinney 2016-05-06 17:53:50 -06:00
parent c18880bd77
commit b6fd4fed38
3 changed files with 31 additions and 39 deletions

View file

@ -1,16 +1,14 @@
const electron = require('electron')
const app = electron.app
const BrowserWindow = electron.BrowserWindow
const {app, BrowserWindow} = require('electron')
var mainWindow = null
// Quit when all windows are closed.
app.on('window-all-closed', function () {
app.on('window-all-closed', () => {
app.quit()
})
exports.load = function (appUrl) {
app.on('ready', function () {
exports.load = (appUrl) => {
app.on('ready', () => {
mainWindow = new BrowserWindow({
width: 800,
height: 600,