Fix indexing of PDFs imported from current document

This commit is contained in:
Dan Stillman 2016-03-18 04:51:32 -04:00
parent c02baa639d
commit f1aa6c5c80

View File

@ -672,7 +672,7 @@ Zotero.Attachments = new function(){
// We'll index it later if it fails. (This may not be necessary.)
if (contentType == 'application/pdf') {
setTimeout(function () {
Zotero.Fulltext.indexPDF(file.path, attachmentItem.id);
Zotero.Fulltext.indexPDF(attachmentItem.getFilePath(), attachmentItem.id);
}, 1000);
}
else if (Zotero.MIME.isTextType(contentType)) {