From 0c024448b7fb3a08213b3e864bf988d3cce13dd7 Mon Sep 17 00:00:00 2001 From: smack0007 Date: Wed, 26 Sep 2018 22:32:07 +0200 Subject: [PATCH] manifestJsonFilePath is now calculated with path.join instead of being a hard coded string. --- ElectronNET.Host/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ElectronNET.Host/main.js b/ElectronNET.Host/main.js index 396385b..d363170 100644 --- a/ElectronNET.Host/main.js +++ b/ElectronNET.Host/main.js @@ -9,7 +9,7 @@ let appApi, menu, dialogApi, notification, tray, webContents; let globalShortcut, shellApi, screen, clipboard; let splashScreen, mainWindowId; -const manifestJsonFilePath = './bin/electron.manifest.json'; +const manifestJsonFilePath = path.join(__dirname, 'bin', 'electron.manifest.json'); const manifestJsonFile = require(manifestJsonFilePath); if (manifestJsonFile.singleInstance) { const shouldQuit = app.requestSingleInstanceLock();