Related to #53
I had to add an event listener that, after the web-clipper finds trilium (server or desktop application), will search if trilium has a note (under Inbox or clipperInbox ) with a pageUrl tag that is the same as the current page url. If the note is found an event is sent that will change the content of the <div id="already-visited"></div> inside popup.html, otherwise the div is kept empty.
This PR will work only after zadam/trilium#4075 is merged, since that PR exposes the endpoint to search a note by url
Related to #53
I had to add an event listener that, after the web-clipper finds trilium (server or desktop application), will search if trilium has a note (under Inbox or
clipperInbox
) with apageUrl
tag that is the same as the current page url. If the note is found an event is sent that will change the content of the<div id="already-visited"></div>
inside popup.html, otherwise the div is kept empty. This PR will work only after zadam/trilium#4075 is merged, since that PR exposes the endpoint to search a note by url