commit 1d367f0165f5a9d0bf5200865dbc8f0c079b0b5e
parent f8b41c971c89ffb474df2103c4bf1a49389a5048
Author: Dan Stillman <dstillman@zotero.org>
Date: Tue, 27 Feb 2018 19:24:28 -0500
Fix await->yield in f8b41c971
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/chrome/content/zotero/zoteroPane.js b/chrome/content/zotero/zoteroPane.js
@@ -3701,7 +3701,7 @@ var ZoteroPane = new function()
if (files.length == 1 && Zotero.Prefs.get('renameAttachmentFiles.automatic')) {
let parentItem = Zotero.Items.get(parentItemID);
if (!parentItem.numNonHTMLFileAttachments()) {
- fileBaseName = await Zotero.Attachments.getRenamedFileBaseNameIfAllowedType(
+ fileBaseName = yield Zotero.Attachments.getRenamedFileBaseNameIfAllowedType(
parentItem, files[0]
);
}