mirror of https://github.com/laurent22/joplin.git
Simplify protocol setup
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