Update translate error report with promisified info (broken c3dcaf9
)
This commit is contained in:
parent
26eebcfc44
commit
c4d39ba79f
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue