changes for standard 6
This commit is contained in:
4
index.js
4
index.js
@@ -1,4 +1,6 @@
|
|||||||
var electron = require('electron')
|
var electron = require('electron')
|
||||||
|
var path = require('path')
|
||||||
|
|
||||||
var app = electron.app
|
var app = electron.app
|
||||||
|
|
||||||
// report crashes to the Electron project
|
// report crashes to the Electron project
|
||||||
@@ -28,7 +30,7 @@ function createMainWindow () {
|
|||||||
height: 400
|
height: 400
|
||||||
})
|
})
|
||||||
|
|
||||||
win.loadURL('file://' + __dirname + '/index.html')
|
win.loadURL('file://' + path.join(__dirname, 'index.html'))
|
||||||
win.on('closed', onClosed)
|
win.on('closed', onClosed)
|
||||||
|
|
||||||
return win
|
return win
|
||||||
|
|||||||
Reference in New Issue
Block a user