From b817a7e8b9f0e18048f7023b8ea55fbec574e6ad Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Sun, 28 Jun 2020 16:55:48 -0700 Subject: [PATCH] Use dot notation instead of subscript. --- frontends/etiquette_flask/static/js/common.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 }