From c4d39ba79fcb12dec38821bc075c4b0c96477666 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adomas=20Ven=C4=8Dkauskas?= Date: Tue, 31 Jan 2017 18:15:32 -0300 Subject: [PATCH] Update translate error report with promisified info (broken c3dcaf9) --- chrome/content/zotero/xpcom/translation/translate.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chrome/content/zotero/xpcom/translation/translate.js b/chrome/content/zotero/xpcom/translation/translate.js index 76b77a760e..8285670bd3 100644 --- a/chrome/content/zotero/xpcom/translation/translate.js +++ b/chrome/content/zotero/xpcom/translation/translate.js @@ -2132,12 +2132,12 @@ Zotero.Translate.Web.prototype.complete = function(returnValue, error) { } var translator = this.translator[0]; - Zotero.getSystemInfo(function(info) { + Zotero.getSystemInfo().then(function(info) { var postBody = "id=" + encodeURIComponent(translator.translatorID) + "&lastUpdated=" + encodeURIComponent(translator.lastUpdated) + "&diagnostic=" + encodeURIComponent(info) + "&errorData=" + encodeURIComponent(errorString); - Zotero.HTTP.doPost(ZOTERO_CONFIG.REPOSITORY_URL + "report", postBody); + return Zotero.HTTP.doPost(ZOTERO_CONFIG.REPOSITORY_URL + "report", postBody); }); } }