💄 Update default_app to ES6 conventions
Add space before object literal method
This commit is contained in:
parent
c18880bd77
commit
b6fd4fed38
3 changed files with 31 additions and 39 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue