Update translate error report with promisified info (broken c3dcaf9)

This commit is contained in:
Adomas Venčkauskas 2017-01-31 18:15:32 -03:00
parent 26eebcfc44
commit c4d39ba79f

View file

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