diff --git a/background.js b/background.js index ade9e9476..4074987ab 100644 --- a/background.js +++ b/background.js @@ -444,4 +444,8 @@ browser.runtime.onMessage.addListener(async request => { else if (request.name === 'send-trilium-search-status') { triliumServerFacade.sendTriliumSearchStatusToPopup(); } + else if (request.name === 'trigger-trilium-search-note-url') { + const activeTab = await getActiveTab(); + triliumServerFacade.triggerSearchNoteByUrl(activeTab.url); + } }); diff --git a/popup/popup.html b/popup/popup.html index ceca59820..4e2109f1e 100644 --- a/popup/popup.html +++ b/popup/popup.html @@ -10,6 +10,7 @@