changes for standard 6
This commit is contained in:
parent
296b28df02
commit
d07f00139c
1 changed files with 3 additions and 1 deletions
4
index.js
4
index.js
|
|
@ -1,4 +1,6 @@
|
|||
var electron = require('electron')
|
||||
var path = require('path')
|
||||
|
||||
var app = electron.app
|
||||
|
||||
// report crashes to the Electron project
|
||||
|
|
@ -28,7 +30,7 @@ function createMainWindow () {
|
|||
height: 400
|
||||
})
|
||||
|
||||
win.loadURL('file://' + __dirname + '/index.html')
|
||||
win.loadURL('file://' + path.join(__dirname, 'index.html'))
|
||||
win.on('closed', onClosed)
|
||||
|
||||
return win
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue