diff options
Diffstat (limited to 'src/index.js')
-rw-r--r-- | src/index.js | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/index.js b/src/index.js index a2b4acb00..a3c770797 100644 --- a/src/index.js +++ b/src/index.js | |||
@@ -94,6 +94,35 @@ if (!gotTheLock) { | |||
94 | } | 94 | } |
95 | }); | 95 | }); |
96 | } | 96 | } |
97 | // const isSecondInstance = app.makeSingleInstance((argv) => { | ||
98 | // if (mainWindow) { | ||
99 | // if (mainWindow.isMinimized()) mainWindow.restore(); | ||
100 | // mainWindow.focus(); | ||
101 | |||
102 | // if (process.platform === 'win32') { | ||
103 | // // Keep only command line / deep linked arguments | ||
104 | // const url = argv.slice(1); | ||
105 | |||
106 | // if (url) { | ||
107 | // handleDeepLink(mainWindow, url.toString()); | ||
108 | // } | ||
109 | // } | ||
110 | // } | ||
111 | |||
112 | // if (argv.includes('--reset-window')) { | ||
113 | // // Needs to be delayed to not interfere with mainWindow.restore(); | ||
114 | // setTimeout(() => { | ||
115 | // debug('Resetting windows via Task'); | ||
116 | // mainWindow.setPosition(DEFAULT_WINDOW_OPTIONS.x + 100, DEFAULT_WINDOW_OPTIONS.y + 100); | ||
117 | // mainWindow.setSize(DEFAULT_WINDOW_OPTIONS.width, DEFAULT_WINDOW_OPTIONS.height); | ||
118 | // }, 1); | ||
119 | // } | ||
120 | // }); | ||
121 | |||
122 | // if (isSecondInstance) { | ||
123 | // console.log('An instance of Franz is already running. Exiting...'); | ||
124 | // app.exit(); | ||
125 | // } | ||
97 | 126 | ||
98 | // Fix Unity indicator issue | 127 | // Fix Unity indicator issue |
99 | // https://github.com/electron/electron/issues/9046 | 128 | // https://github.com/electron/electron/issues/9046 |