From f18411c151bd52ec470cfe83f6c0166a39d213d0 Mon Sep 17 00:00:00 2001 From: Martynas Bagdonas Date: Tue, 1 Aug 2023 16:58:15 +0300 Subject: [PATCH] Properly trigger annotation position split if server says it's too long --- chrome/content/zotero/xpcom/sync/syncEngine.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/sync/syncEngine.js b/chrome/content/zotero/xpcom/sync/syncEngine.js index 07e6c9a108..4313ca0214 100644 --- a/chrome/content/zotero/xpcom/sync/syncEngine.js +++ b/chrome/content/zotero/xpcom/sync/syncEngine.js @@ -2086,7 +2086,7 @@ Zotero.Sync.Data.Engine.prototype._checkObjectUploadError = Zotero.Promise.corou } // Split old annotations before we were splitting them automatically in the PDF reader - if (message == "Annotation position is too long") { + if (message.startsWith("Annotation position is too long")) { let item = Zotero.Items.getByLibraryAndKey(this.libraryID, key); yield Zotero.Annotations.splitAnnotations(item); }