Mendeley import: Add log lines for timing pdf-worker

This commit is contained in:
Dan Stillman 2021-03-10 08:13:09 -05:00
parent 13cafe886e
commit 249d1aa0da

View file

@ -1184,7 +1184,9 @@ Zotero_Import_Mendeley.prototype._saveAnnotations = async function (annotations,
// PDFWorker needs 'id' // PDFWorker needs 'id'
annotations.forEach(annotation => annotation.id = annotation.uuid); annotations.forEach(annotation => annotation.id = annotation.uuid);
// Returns 'id', 'position', 'type', 'pageLabel', 'sortIndex', 'text' (for highlight) // Returns 'id', 'position', 'type', 'pageLabel', 'sortIndex', 'text' (for highlight)
Zotero.debug("Processing annotations in " + file);
annotations = await Zotero.PDFWorker.processMendeleyAnnotations(file, annotations); annotations = await Zotero.PDFWorker.processMendeleyAnnotations(file, annotations);
Zotero.debug("Done processing annotations");
for (let annotation of annotations) { for (let annotation of annotations) {
// Ignore empty highlights // Ignore empty highlights