Spaces:
Sleeping
Sleeping
Commit
·
ff97624
1
Parent(s):
5bda250
Update static/js/app.js
Browse files- static/js/app.js +6 -1
static/js/app.js
CHANGED
@@ -165,9 +165,14 @@ function createDownloadLink(blob) {
|
|
165 |
fetch('/set_condition/sunny', { method: 'GET'})
|
166 |
.then(response => response.json())
|
167 |
.then(data => {
|
|
|
|
|
|
|
|
|
|
|
|
|
168 |
// Accede al contenido obtenido del servidor y haz lo que necesites
|
169 |
//var condition = data.condition;
|
170 |
-
const condition = getCookie('condition');
|
171 |
console.log(condition);
|
172 |
console.log("js");
|
173 |
console.log(condition);
|
|
|
165 |
fetch('/set_condition/sunny', { method: 'GET'})
|
166 |
.then(response => response.json())
|
167 |
.then(data => {
|
168 |
+
//const condition = getCookie('condition');
|
169 |
+
return fetch('/get_condition', { method: 'GET'});
|
170 |
+
})
|
171 |
+
.then(response => response.json())
|
172 |
+
.then(data => {
|
173 |
+
const condition = data.condition;
|
174 |
// Accede al contenido obtenido del servidor y haz lo que necesites
|
175 |
//var condition = data.condition;
|
|
|
176 |
console.log(condition);
|
177 |
console.log("js");
|
178 |
console.log(condition);
|