Fix await->yield in f8b41c971

This commit is contained in:
Dan Stillman 2018-02-27 19:24:28 -05:00
parent f8b41c971c
commit 1d367f0165

View file

@ -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]
);
}