Add Zotero.wait() to file size calculation during sync to attempt to avoid unresponsive script warning
This commit is contained in:
parent
65f493471f
commit
3bb221b5e3
1 changed files with 1 additions and 0 deletions
|
@ -1091,6 +1091,7 @@ Zotero.Attachments = new function(){
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
size += file.fileSize;
|
size += file.fileSize;
|
||||||
|
Zotero.wait();
|
||||||
}
|
}
|
||||||
return size;
|
return size;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue