Request new keys (largely untested)
This commit is contained in:
parent
56433bd9af
commit
aec36468bc
4 changed files with 88 additions and 69 deletions
|
@ -218,8 +218,11 @@ window.textsecure.api = function() {
|
|||
var code = jqXHR.status;
|
||||
if (code > 999 || code < 100)
|
||||
code = -1;
|
||||
|
||||
var e = new Error(code);
|
||||
e.name = "HTTPError";
|
||||
if (jqXHR.responseJSON)
|
||||
e.response = jqXHR.responseJSON;
|
||||
reject(e);
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue