mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-09-21 14:35:16 +00:00
Merge pull request #167 from smack0007/manifest-path
manifestJsonFilePath is now calculated with path.join instead of bein…
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user