From b269c2fdb9075db38e31320259cf39641a813e83 Mon Sep 17 00:00:00 2001 From: Roman Date: Sat, 28 Aug 2021 14:26:54 +0100 Subject: [PATCH] Simplify protocol setup --- packages/app-desktop/main.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/packages/app-desktop/main.js b/packages/app-desktop/main.js index cd2295b09..2d8dc44a8 100644 --- a/packages/app-desktop/main.js +++ b/packages/app-desktop/main.js @@ -37,11 +37,7 @@ const env = envFromArgs(process.argv); const profilePath = profileFromArgs(process.argv); const isDebugMode = !!process.argv && process.argv.indexOf('--debug') >= 0; -if (env === 'dev' && process.platform === 'win32') { - electronApp.setAsDefaultProtocolClient('joplin', process.execPath, [process.argv[1]]); -} else { - electronApp.setAsDefaultProtocolClient('joplin'); -} +electronApp.setAsDefaultProtocolClient('joplin'); const initialCallbackUrl = process.argv.find((arg) => isCallbackUrl(arg));