diff options
-rw-r--r-- | src/index.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/index.js b/src/index.js index 05c793d98..3fe996aa7 100644 --- a/src/index.js +++ b/src/index.js | |||
@@ -305,6 +305,20 @@ const createWindow = () => { | |||
305 | }); | 305 | }); |
306 | }; | 306 | }; |
307 | 307 | ||
308 | // Allow passing command line parameters/switches to electron | ||
309 | // https://electronjs.org/docs/api/chrome-command-line-switches | ||
310 | // used for Kerberos support | ||
311 | // Usage e.g. MACOS | ||
312 | // $ Franz.app/Contents/MacOS/Franz --auth-server-whitelist *.mydomain.com --auth-negotiate-delegate-whitelist *.mydomain.com | ||
313 | const argv = require('minimist')(process.argv.slice(1)); | ||
314 | |||
315 | if (argv['auth-server-whitelist']) { | ||
316 | app.commandLine.appendSwitch('auth-server-whitelist', argv['auth-server-whitelist']); | ||
317 | } | ||
318 | if (argv['auth-negotiate-delegate-whitelist']) { | ||
319 | app.commandLine.appendSwitch('auth-negotiate-delegate-whitelist', argv['auth-negotiate-delegate-whitelist']); | ||
320 | } | ||
321 | |||
308 | // This method will be called when Electron has finished | 322 | // This method will be called when Electron has finished |
309 | // initialization and is ready to create browser windows. | 323 | // initialization and is ready to create browser windows. |
310 | // Some APIs can only be used after this event occurs. | 324 | // Some APIs can only be used after this event occurs. |