From 81ec8287f8ba127ca39d1dcf2f0dfd9562fbe679 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Thu, 6 Jul 2023 20:00:04 -0400 Subject: [PATCH] Disable attachmentContentType check to prevent sync errors --- chrome/content/zotero/xpcom/data/item.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/data/item.js b/chrome/content/zotero/xpcom/data/item.js index 8a9224d104..ed43c7280a 100644 --- a/chrome/content/zotero/xpcom/data/item.js +++ b/chrome/content/zotero/xpcom/data/item.js @@ -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()}`];