1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-07-16 00:14:34 +02:00

Open the note from URL even if Joplin isn't running

This commit is contained in:
Roman
2021-08-13 23:21:14 +01:00
parent 00504898f2
commit 61161039c8
4 changed files with 21 additions and 15 deletions

View File

@ -44,7 +44,9 @@ if (env === 'dev' && process.platform === 'win32') {
electronApp.setAsDefaultProtocolClient('joplin');
}
const wrapper = new ElectronAppWrapper(electronApp, env, profilePath, isDebugMode);
const initialUrl = process.argv.find((arg) => arg.startsWith('joplin://'));
const wrapper = new ElectronAppWrapper(electronApp, env, profilePath, isDebugMode, initialUrl);
initBridge(wrapper);