Add Zotero.wait() to file size calculation during sync to attempt to avoid unresponsive script warning

This commit is contained in:
Dan Stillman 2010-03-16 22:45:43 +00:00
parent 65f493471f
commit 3bb221b5e3

View file

@ -1091,6 +1091,7 @@ Zotero.Attachments = new function(){
continue; continue;
} }
size += file.fileSize; size += file.fileSize;
Zotero.wait();
} }
return size; return size;
} }