From 4a6501c198c5d47518cd28e06cada943fa7960b1 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Thu, 4 Oct 2018 18:22:32 -0400 Subject: [PATCH] Update comments for PDF retrieval functions --- chrome/content/zotero/xpcom/attachments.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/chrome/content/zotero/xpcom/attachments.js b/chrome/content/zotero/xpcom/attachments.js index f8df2bba26..66775eb610 100644 --- a/chrome/content/zotero/xpcom/attachments.js +++ b/chrome/content/zotero/xpcom/attachments.js @@ -1103,6 +1103,8 @@ Zotero.Attachments = new function(){ /** + * Look for available PDFs for items and add as attachments + * * @param {Zotero.Item[]} items * @param {Object} [options] * @param {String[]} [options.methods] - See getPDFResolvers() @@ -1353,7 +1355,7 @@ Zotero.Attachments = new function(){ /** - * Try to add a PDF to an item from a set of possible URLs + * Try to add a PDF to an item from a set of URL resolvers * * @param {Zotero.Item} item * @param {(String|Object|Function)[]} urlResolvers - See downloadFirstAvailableFile() @@ -1430,7 +1432,7 @@ Zotero.Attachments = new function(){ /** - * Try to download a file from a list of URLs, keeping the first one that succeeds + * Try to download a file from a set of URL resolvers, keeping the first one that succeeds * * URLs are only tried once. *