Fix HTML indexing when using linkFromDocument()

This commit is contained in:
Dan Stillman 2023-04-14 16:23:09 -04:00
parent b99e581929
commit d1ae009f57

View file

@ -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);
}