diff --git a/frontends/etiquette_flask/static/js/common.js b/frontends/etiquette_flask/static/js/common.js index d2d7275..5c67f7d 100644 --- a/frontends/etiquette_flask/static/js/common.js +++ b/frontends/etiquette_flask/static/js/common.js @@ -18,10 +18,10 @@ function _request(method, url, callback) { if (request.status != 0) { - response["completed"] = true; - response["data"] = JSON.parse(request.responseText); + response.completed = true; + response.data = JSON.parse(request.responseText); } - response["meta"] = { + response.meta = { "request_url": url, "status": request.status }