diff --git a/chrome/content/zotero/xpcom/translation/translators.js b/chrome/content/zotero/xpcom/translation/translators.js index fe1d41fa7..cb8b73515 100644 --- a/chrome/content/zotero/xpcom/translation/translators.js +++ b/chrome/content/zotero/xpcom/translation/translators.js @@ -152,7 +152,7 @@ Zotero.Translators = new function() { */ this.loadFromDisk = function(file) { const infoRe = /^\s*{[\S\s]*?}\s*?[\r\n]/; - Zotero.File.getContentsAsync(this.file).then(function(source) { + return Zotero.File.getContentsAsync(this.file).then(function(source) { return Zotero.Translators.load(file, infoRe.exec(source)[0], source); }).fail(function() { throw "Invalid or missing translator metadata JSON object in " + file.leafName;