Fix attachmentSyncedModificationTime for embedded-image attachments
This commit is contained in:
parent
62c6f561a6
commit
d44ab7efbb
1 changed files with 2 additions and 7 deletions
|
@ -3117,13 +3117,8 @@ Zotero.defineProperty(Zotero.Item.prototype, 'attachmentSyncedModificationTime',
|
|||
throw new Error("attachmentSyncedModificationTime can only be set for attachment items");
|
||||
}
|
||||
|
||||
switch (this.attachmentLinkMode) {
|
||||
case Zotero.Attachments.LINK_MODE_IMPORTED_URL:
|
||||
case Zotero.Attachments.LINK_MODE_IMPORTED_FILE:
|
||||
break;
|
||||
|
||||
default:
|
||||
throw new Error("attachmentSyncedModificationTime can only be set for stored files");
|
||||
if (!this.isStoredFileAttachment()) {
|
||||
throw new Error("attachmentSyncedModificationTime can only be set for stored files");
|
||||
}
|
||||
|
||||
if (typeof val != 'number') {
|
||||
|
|
Loading…
Reference in a new issue