Save a little code
This commit is contained in:
parent
690ceac4b3
commit
acd54cd2c0
1 changed files with 1 additions and 2 deletions
|
@ -229,10 +229,9 @@ Zotero.Translate.Sandbox = {
|
||||||
|| translate instanceof Zotero.Translate.Search)) {
|
|| translate instanceof Zotero.Translate.Search)) {
|
||||||
// Necessary to get around object wrappers in Firefox
|
// Necessary to get around object wrappers in Firefox
|
||||||
var attachments = item.attachments;
|
var attachments = item.attachments;
|
||||||
delete item.attachments;
|
|
||||||
|
|
||||||
item = translate._sandboxManager.sandbox.Zotero._transferItem(JSON.stringify(item));
|
|
||||||
item.attachments = [];
|
item.attachments = [];
|
||||||
|
item = translate._sandboxManager.sandbox.Zotero._transferItem(JSON.stringify(item));
|
||||||
|
|
||||||
// Manually copy attachments in case there are documents, which
|
// Manually copy attachments in case there are documents, which
|
||||||
// can't be serialized and don't need to be
|
// can't be serialized and don't need to be
|
||||||
|
|
Loading…
Add table
Reference in a new issue