mirror of
https://github.com/laurent22/joplin.git
synced 2025-01-20 18:48:28 +02:00
Cleanup
This commit is contained in:
parent
0a6390ed96
commit
00504898f2
@ -166,20 +166,7 @@ class Application extends BaseApplication {
|
|||||||
ipcRenderer.on('asynchronous-message', (_event: any, message: string, args: any) => {
|
ipcRenderer.on('asynchronous-message', (_event: any, message: string, args: any) => {
|
||||||
if (message === 'openUrl') {
|
if (message === 'openUrl') {
|
||||||
const noteId = (args.url as string).substring('joplin://'.length);
|
const noteId = (args.url as string).substring('joplin://'.length);
|
||||||
console.log(`open note ${noteId}`);
|
|
||||||
|
|
||||||
CommandService.instance().execute('openNote', noteId);
|
CommandService.instance().execute('openNote', noteId);
|
||||||
// const item = Note
|
|
||||||
// this.store().dispatch({
|
|
||||||
// type: 'FOLDER_AND_NOTE_SELECT',
|
|
||||||
// folderId: item.parent_id,
|
|
||||||
// noteId: item.id,
|
|
||||||
// });
|
|
||||||
// this.store().dispatch({
|
|
||||||
// type: 'NAV_GO',
|
|
||||||
// routeName: 'Note',
|
|
||||||
// noteId: noteId,
|
|
||||||
// });
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user