Zotero.Items: Support EPUB and snapshot annotations
This commit is contained in:
parent
681cdd809f
commit
3be3d8ebef
1 changed files with 2 additions and 2 deletions
|
@ -1914,8 +1914,8 @@ Zotero.Item.prototype._saveData = Zotero.Promise.coroutine(function* (env) {
|
|||
if (!parentItem.isFileAttachment()) {
|
||||
throw new Error("Annotation parent must be a file attachment");
|
||||
}
|
||||
if (parentItem.attachmentContentType != 'application/pdf') {
|
||||
//throw new Error("Annotation parent must be a PDF");
|
||||
if (!['application/pdf', 'application/epub+zip', 'text/html'].includes(parentItem.attachmentContentType)) {
|
||||
throw new Error("Annotation parent must be a PDF, EPUB, or HTML snapshot");
|
||||
}
|
||||
let type = this._getLatestField('annotationType');
|
||||
let typeID = Zotero.Annotations[`ANNOTATION_TYPE_${type.toUpperCase()}`];
|
||||
|
|
Loading…
Reference in a new issue