Disable attachmentContentType check to prevent sync errors

(cherry picked from commit 81ec8287f8)
This commit is contained in:
Dan Stillman 2023-07-06 20:00:04 -04:00
parent 48c7c60bf1
commit 4f7583e1c0

View file

@ -1906,7 +1906,7 @@ Zotero.Item.prototype._saveData = Zotero.Promise.coroutine(function* (env) {
throw new Error("Annotation parent must be a file attachment");
}
if (parentItem.attachmentContentType != 'application/pdf') {
throw new Error("Annotation parent must be a PDF");
//throw new Error("Annotation parent must be a PDF");
}
let type = this._getLatestField('annotationType');
let typeID = Zotero.Annotations[`ANNOTATION_TYPE_${type.toUpperCase()}`];