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