From 203e67a01790f2fd8fbf0be6b94bc417131ba730 Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Sat, 30 Sep 2017 08:05:27 -0400 Subject: [PATCH] fix name --- contrib/static/overchan.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/contrib/static/overchan.js b/contrib/static/overchan.js index 7347f97..9c93c56 100644 --- a/contrib/static/overchan.js +++ b/contrib/static/overchan.js @@ -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 += ".";