From c2df3384303119651d97a5a2bff79b21a6985ecd Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Mon, 30 Aug 2021 03:58:27 -0400 Subject: [PATCH] Allow 'ink' annotation type to be created --- 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 6746ecde1a..4774f47f54 100644 --- a/chrome/content/zotero/xpcom/data/item.js +++ b/chrome/content/zotero/xpcom/data/item.js @@ -3693,7 +3693,7 @@ for (let name of ['type', 'text', 'comment', 'color', 'pageLabel', 'sortIndex', if (currentType && currentType != value) { throw new Error("Cannot change annotation type"); } - if (!['highlight', 'note', 'image'].includes(value)) { + if (!['highlight', 'note', 'image', 'ink'].includes(value)) { let e = new Error(`Unknown annotation type '${value}'`); e.name = "ZoteroInvalidDataError"; throw e;