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:
parent
f42fd0ecce
commit
b269c2fdb9
@ -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));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user