From 3bb221b5e3f959f59a54157cf7a92a097e1c1c64 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Tue, 16 Mar 2010 22:45:43 +0000 Subject: [PATCH] Add Zotero.wait() to file size calculation during sync to attempt to avoid unresponsive script warning --- chrome/content/zotero/xpcom/attachments.js | 1 + 1 file changed, 1 insertion(+) diff --git a/chrome/content/zotero/xpcom/attachments.js b/chrome/content/zotero/xpcom/attachments.js index 13d3c94a9e..18f9eaf989 100644 --- 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; }