From d1ae009f57f5ad682ce2b3f553645a2fbc4184c4 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Fri, 14 Apr 2023 16:23:09 -0400 Subject: [PATCH] Fix HTML indexing when using `linkFromDocument()` --- chrome/content/zotero/xpcom/attachments.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/chrome/content/zotero/xpcom/attachments.js b/chrome/content/zotero/xpcom/attachments.js index 47adfd1fd7..1f51fc6cbd 100644 --- a/chrome/content/zotero/xpcom/attachments.js +++ b/chrome/content/zotero/xpcom/attachments.js @@ -833,11 +833,7 @@ Zotero.Attachments = new function(){ saveOptions, }); - if (Zotero.Fulltext.isCachedMIMEType(contentType)) { - // No file, so no point running the PDF indexer - //Zotero.Fulltext.indexItems([itemID]); - } - else if (Zotero.MIME.isTextType(document.contentType)) { + if (Zotero.MIME.isTextType(document.contentType)) { yield Zotero.Fulltext.indexDocument(document, item.id); }