Fix xhr callbacks
This commit is contained in:
parent
ea893b2322
commit
69ec37331a
@ -27,12 +27,12 @@ var Shynet = {
|
||||
true
|
||||
);
|
||||
xhr.setRequestHeader("Content-Type", "application/json");
|
||||
xhr.onload(function () {
|
||||
xhr.onload = function () {
|
||||
Shynet.skipHeartbeat = false;
|
||||
});
|
||||
xhr.onerror(function () {
|
||||
};
|
||||
xhr.onerror = function () {
|
||||
Shynet.skipHeartbeat = false;
|
||||
});
|
||||
};
|
||||
xhr.send(
|
||||
JSON.stringify({
|
||||
idempotency: Shynet.idempotency,
|
||||
|
Loading…
x
Reference in New Issue
Block a user