changes for standard 6

This commit is contained in:
Feross Aboukhadijeh
2016-02-16 17:58:20 -08:00
parent 296b28df02
commit d07f00139c

View File

@@ -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