1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-30 10:36:35 +02:00

Simplify protocol setup

This commit is contained in:
Roman 2021-08-28 14:26:54 +01:00
parent f42fd0ecce
commit b269c2fdb9

View File

@ -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));