commit 3bb221b5e3f959f59a54157cf7a92a097e1c1c64
parent 65f493471f501e013b62f9525cccd8e292de061f
Author: Dan Stillman <dstillman@zotero.org>
Date: Tue, 16 Mar 2010 22:45:43 +0000
Add Zotero.wait() to file size calculation during sync to attempt to avoid unresponsive script warning
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/chrome/content/zotero/xpcom/attachments.js b/chrome/content/zotero/xpcom/attachments.js
@@ -1091,6 +1091,7 @@ Zotero.Attachments = new function(){
continue;
}
size += file.fileSize;
+ Zotero.wait();
}
return size;
}