From d07f00139cd7fb2d6c6d9ebe94194f24206b5b4a Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Tue, 16 Feb 2016 17:58:20 -0800 Subject: [PATCH] changes for standard 6 --- index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index b91188a4..f04353b7 100644 --- a/index.js +++ b/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