www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit c4d39ba79fcb12dec38821bc075c4b0c96477666
parent 26eebcfc4476af1095fab55fa21f9f14d8b4591e
Author: Adomas VenĨkauskas <adomas.ven@gmail.com>
Date:   Tue, 31 Jan 2017 18:15:32 -0300

Update translate error report with promisified info (broken c3dcaf9)

Diffstat:
Mchrome/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 @@ -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); }); } }