Fix cross-site document saving
This commit is contained in:
parent
36cfad3933
commit
2facd4fcbd
1 changed files with 4 additions and 0 deletions
|
@ -310,6 +310,10 @@ Zotero.Translate.ItemSaver.prototype = {
|
|||
|| downloadAssociatedFiles;
|
||||
if(!shouldAttach) return;
|
||||
|
||||
if(attachment.document && "__wrappedDOMObject" in attachment.document) {
|
||||
attachment.document = attachment.document.__wrappedDOMObject;
|
||||
}
|
||||
|
||||
if(attachment.snapshot === false || !this._saveFiles) {
|
||||
// if snapshot is explicitly set to false, attach as link
|
||||
if(attachment.document) {
|
||||
|
|
Loading…
Add table
Reference in a new issue