From 4549cbf1ed408245c4b37573a7577c31bb890aec Mon Sep 17 00:00:00 2001 From: Abe Jellinek Date: Tue, 27 Aug 2024 12:53:48 -0400 Subject: [PATCH] Attachment box: Use un-deprecated attachmentFilename property (#4638) Fixes warning. --- chrome/content/zotero/elements/attachmentBox.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/elements/attachmentBox.js b/chrome/content/zotero/elements/attachmentBox.js index d0ae7b90ce..ba5aa85f48 100644 --- a/chrome/content/zotero/elements/attachmentBox.js +++ b/chrome/content/zotero/elements/attachmentBox.js @@ -561,7 +561,7 @@ return ""; }; newFilename = newFilename.trim(); - let oldFilename = item.getFilename(); + let oldFilename = item.attachmentFilename; if (oldFilename === newFilename) { return; }