From 1d367f0165f5a9d0bf5200865dbc8f0c079b0b5e Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Tue, 27 Feb 2018 19:24:28 -0500 Subject: [PATCH] Fix await->yield in f8b41c971 --- chrome/content/zotero/zoteroPane.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/zoteroPane.js b/chrome/content/zotero/zoteroPane.js index 7eeed426e..67f272a6d 100644 --- 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] ); }