Skip to content

Build your personal knowledge base with Trilium Notes

refac: better naming

contributor977399a73e50
diff --git a/src/routes/api/clipper.js b/src/routes/api/clipper.js
index ac3bb416fe..5c89ac291f 100644
--- a/src/routes/api/clipper.js
+++ b/src/routes/api/clipper.js
@@ -14,8 +14,8 @@ const Attribute = require('../../becca/entities/attribute');
const htmlSanitizer = require('../../services/html_sanitizer');
const {formatAttrForSearch} = require("../../services/attribute_formatter");
-function findClippingNote(todayNote, pageUrl) {
- const notes = todayNote.searchNotesInSubtree(
+function findClippingNote(clipperInboxNote, pageUrl) {
+ const notes = clipperInboxNote.searchNotesInSubtree(
formatAttrForSearch({
type: 'label',
name: "pageUrl",