Skip to content

Build your personal knowledge base with Trilium Notes

fix(web-clipper): undefined variable in popup

Elian Doran423038100e15
diff --git a/apps/web-clipper/entrypoints/popup/popup.js b/apps/web-clipper/entrypoints/popup/popup.js
index 775a3ec0c8..ec5ee67f82 100644
--- a/apps/web-clipper/entrypoints/popup/popup.js
+++ b/apps/web-clipper/entrypoints/popup/popup.js
@@ -161,8 +161,7 @@ browser.runtime.onMessage.addListener(request => {
if (searchNote.status === 'found'){
const a = createLink({name: 'openNoteInTrilium', noteId: searchNote.noteId},
"Open in Trilium.")
- noteFound = `Already visited website!`;
- $alreadyVisited.html(noteFound);
+ $alreadyVisited.text(`Already visited website!`);
$alreadyVisited[0].appendChild(a);
}else{
$alreadyVisited.html('');