mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 19:05:59 +01:00
opening links from the clipper
This commit is contained in:
@@ -707,6 +707,18 @@ messagingService.subscribeToMessages(message => {
|
||||
if (message.type === 'refresh-tree') {
|
||||
reload();
|
||||
}
|
||||
else if (message.type === 'open-note') {
|
||||
noteDetailService.loadNoteDetail(message.noteId, {
|
||||
newTab: true,
|
||||
activate: true
|
||||
});
|
||||
|
||||
if (utils.isElectron()) {
|
||||
const currentWindow = require("electron").remote.getCurrentWindow();
|
||||
|
||||
currentWindow.show();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
messagingService.subscribeToSyncMessages(syncData => {
|
||||
|
||||
Reference in New Issue
Block a user