Disable attachmentContentType check to prevent sync errors

This commit is contained in:
Dan Stillman 2023-07-06 20:00:04 -04:00
parent 4a8935eefd
commit 81ec8287f8

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()}`];