manifestJsonFilePath is now calculated with path.join instead of being a hard coded string.

This commit is contained in:
smack0007
2018-09-26 22:32:07 +02:00
parent ac9d346955
commit 0c024448b7

View File

@@ -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();