From e471d928d799a46eb0aea07b35da613cf7ef8d4c Mon Sep 17 00:00:00 2001 From: Ryzzzen Date: Fri, 24 May 2019 21:38:13 +0200 Subject: [PATCH] Main process fixes --- main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.js b/main.js index 90c5c2e..51d7da7 100644 --- a/main.js +++ b/main.js @@ -35,8 +35,8 @@ else { function createWindow () { win = new BrowserWindow({ width: 600, height: 600, frame: false, icon: __dirname + '/build/icon.' + (process.platform === 'win32' ? 'ico' : 'png'), backgroundColor: '#000A13', maximizable: false, resizable: false, show: false, webPreferences: { nodeIntegration: true } }); - win.loadURL(url.format({ - pathname: path.join(__dirname, 'src/index.html'), // important + win.loadURL(require('url').format({ + pathname: require('path').join(__dirname, 'src/index.html'), // important protocol: 'file:', slashes: true, }));