LeireTedCas commited on
Commit
d96f080
·
1 Parent(s): e59defd

Update static/js/app.js

Browse files
Files changed (1) hide show
  1. static/js/app.js +5 -3
static/js/app.js CHANGED
@@ -160,12 +160,14 @@ function createDownloadLink(blob) {
160
  obtener_condition();
161
  function obtener_condition() {
162
  console.log("ha entrao")
163
- // Realiza una solicitud Fetch al servidor para obtener el contenido din�mico
164
- fetch('/obtener_contenido')
 
165
  .then(response => response.json())
166
  .then(data => {
167
  // Accede al contenido obtenido del servidor y haz lo que necesites
168
- var condition = data.condition;
 
169
  console.log(condition);
170
  console.log("js");
171
  console.log(condition);
 
160
  obtener_condition();
161
  function obtener_condition() {
162
  console.log("ha entrao")
163
+ // Realiza una solicitud Fetch al servidor para obtener el contenido din�mico
164
+ //fetch('/obtener_contenido')
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);