aboutsummaryrefslogtreecommitdiff
path: root/docker/crupest-nginx/sites/www/src/main.js
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-11-27 15:53:02 +0800
committercrupest <crupest@outlook.com>2022-11-27 15:53:02 +0800
commitc4e083863e8476ca70d8b895beea5a172fcb7ecd (patch)
tree3de0178b97b26904126056f1010a202fda7a4124 /docker/crupest-nginx/sites/www/src/main.js
parent79054b14574821a4ceb3c471a61080cb7808d171 (diff)
downloadcrupest-c4e083863e8476ca70d8b895beea5a172fcb7ecd.tar.gz
crupest-c4e083863e8476ca70d8b895beea5a172fcb7ecd.tar.bz2
crupest-c4e083863e8476ca70d8b895beea5a172fcb7ecd.zip
Enhance nginx config and www page.
Diffstat (limited to 'docker/crupest-nginx/sites/www/src/main.js')
-rw-r--r--docker/crupest-nginx/sites/www/src/main.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/docker/crupest-nginx/sites/www/src/main.js b/docker/crupest-nginx/sites/www/src/main.js
index 111b0bd..13a85c3 100644
--- a/docker/crupest-nginx/sites/www/src/main.js
+++ b/docker/crupest-nginx/sites/www/src/main.js
@@ -21,7 +21,7 @@ document.addEventListener("DOMContentLoaded", async () => {
const todoContainer = document.getElementById("todo-container");
const res = await fetch("/api/todos");
- const body = res.json();
+ const body = await res.json();
if (res.status !== 200) {
todoMessage.style.color = "red";