diff options
author | crupest <crupest@outlook.com> | 2022-11-27 15:53:02 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2022-11-27 15:53:02 +0800 |
commit | 4fa1f65c5d099971e94f7f5af4c710fe297d9285 (patch) | |
tree | 3de0178b97b26904126056f1010a202fda7a4124 /docker/crupest-nginx/sites/www/src/main.js | |
parent | 2dfc42b9bee216ce966fb1b74d3d7d21e0dcbd81 (diff) | |
download | crupest-4fa1f65c5d099971e94f7f5af4c710fe297d9285.tar.gz crupest-4fa1f65c5d099971e94f7f5af4c710fe297d9285.tar.bz2 crupest-4fa1f65c5d099971e94f7f5af4c710fe297d9285.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.js | 2 |
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"; |