From 0af284c37cb6360d14f39d5839dea10fb7d0a5a7 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Mon, 31 Oct 2016 10:36:11 -0700 Subject: [PATCH] Use path.join for pathname --- main.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.js b/main.js index 7ae3ec7..623740a 100644 --- a/main.js +++ b/main.js @@ -4,6 +4,7 @@ const app = electron.app // Module to create native browser window. const BrowserWindow = electron.BrowserWindow +const path = require('path') const url = require('url') // Keep a global reference of the window object, if you don't, the window will @@ -16,7 +17,7 @@ function createWindow () { // and load the index.html of the app. mainWindow.loadURL(url.format({ - pathname: __dirname + '/index.html', + pathname: path.join(__dirname, 'index.html'), protocol: 'file:', slashes: true }))