Merge pull request #167 from smack0007/manifest-path

manifestJsonFilePath is now calculated with path.join instead of bein…
This commit is contained in:
Gregor Biswanger
2018-09-26 22:46:39 +02:00
committed by GitHub

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