diff options
Diffstat (limited to 'src/index.js')
-rw-r--r-- | src/index.js | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/index.js b/src/index.js index 7634fd35b..55a6dbc0d 100644 --- a/src/index.js +++ b/src/index.js | |||
@@ -388,11 +388,10 @@ app.on('ready', () => { | |||
388 | enforceMacOSAppLocation(); | 388 | enforceMacOSAppLocation(); |
389 | 389 | ||
390 | // Register App URL | 390 | // Register App URL |
391 | if (isDevMode) { | 391 | const protocolClient = isDevMode ? 'ferdi-dev' : 'ferdi'); |
392 | app.setAsDefaultProtocolClient('ferdi-dev'); | 392 | if (!app.isDefaultProtocolClient(protocolClient) { |
393 | } else { | 393 | app.setAsDefaultProtocolClient(protocolClient); |
394 | app.setAsDefaultProtocolClient('ferdi'); | 394 | } |
395 | } | ||
396 | 395 | ||
397 | if (isWindows) { | 396 | if (isWindows) { |
398 | app.setUserTasks([ | 397 | app.setUserTasks([ |