Allow 'ink' annotation type to be created
This commit is contained in:
parent
37d5e99fde
commit
c2df338430
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue