From c735423996bdbba202b362233c8b6c22e3ca31fd Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Fri, 8 Mar 2019 20:23:00 -0500 Subject: [PATCH] Don't show PDF icon for linked-URL PDFs (regression from 8cd5b09053b) --- chrome/content/zotero/xpcom/data/item.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/data/item.js b/chrome/content/zotero/xpcom/data/item.js index 83f47f8430..6880bf5997 100644 --- a/chrome/content/zotero/xpcom/data/item.js +++ b/chrome/content/zotero/xpcom/data/item.js @@ -3686,7 +3686,7 @@ Zotero.Item.prototype.getImageSrc = function() { if (itemType == 'attachment') { var linkMode = this.attachmentLinkMode; - if (this.attachmentContentType == 'application/pdf') { + if (this.attachmentContentType == 'application/pdf' && this.isFileAttachment()) { if (linkMode == Zotero.Attachments.LINK_MODE_LINKED_FILE) { itemType += '-pdf-link'; }