Allow 'ink' annotation type to be created

This commit is contained in:
Dan Stillman 2021-08-30 03:58:27 -04:00
parent 37d5e99fde
commit c2df338430

View file

@ -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;