Archived
1
0
This commit is contained in:
Jeff Becker 2017-09-30 08:05:27 -04:00
parent 86896b6c52
commit 203e67a017
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

View File

@ -52,10 +52,10 @@ onready(function() {
var ajax = new XMLHttpRequest();
ajax.onreadystatechange = function() {
if (ajax.readyState == 4) {
if(ajax.statusCode == 201) {
if(ajax.status == 201) {
// success
cb(null);
} else if (ajax.statusCode == 200) {
} else if (ajax.status == 200) {
var err = "unknown error";
try {
var j = JSON.parse(ajax.responseText);
@ -65,7 +65,7 @@ onready(function() {
}
cb(err);
} else {
cb("http "+ajax.statusCode);
cb("http "+ajax.status);
}
} else {
elem.innerHTML += ".";